Skip to content

Conversation

piyoki
Copy link
Contributor

@piyoki piyoki commented Aug 2, 2023

Background

Add extra cmd flags to allow end-users to customize settings for file logger.

Ref: https://github.com/natefinch/lumberjack

Checklist

Full changelogs

  • feat(pkg/log): add options for fileLogger
  • feat(common/consts): persist default vals for log pkg
  • feat(cmd/{server,client}): add extra flags for fileLogger
  • docs(server,client): add extra logger auguments

Issue reference

NA

Test Result

Run without logFileWriter:

image

Run with logFileWriter:

image

@mzz2017
Copy link
Contributor

mzz2017 commented Aug 2, 2023

Does it really work for gliderLog?

@piyoki
Copy link
Contributor Author

piyoki commented Aug 2, 2023

Does it really work for gliderLog?

It ONLY works for fileLogWriter. More precisely, if --log-enable-file-writer is NOT passed, the app will ONLY use ConsoleWriter.

@juicity-bot
Copy link
Contributor

juicity-bot bot commented Aug 3, 2023

❌ Your branch is currently out-of-sync to main. No worry, I will fix it for you.

@juicity-bot
Copy link
Contributor

juicity-bot bot commented Aug 5, 2023

❌ Your branch is currently out-of-sync to main. No worry, I will fix it for you.

@piyoki piyoki requested a review from mzz2017 August 5, 2023 13:27
@piyoki
Copy link
Contributor Author

piyoki commented Aug 5, 2023

LGTM, ready to merge?

@mzz2017
Copy link
Contributor

mzz2017 commented Aug 5, 2023

Test Result:

image

mzz2017
mzz2017 previously approved these changes Aug 5, 2023
@mzz2017 mzz2017 merged commit f29909b into main Aug 5, 2023
@mzz2017 mzz2017 deleted the file_log_options branch August 5, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants