Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow active log file to be located in a separated directory #152

Open
Sauci opened this issue Mar 10, 2022 · 0 comments
Open

Allow active log file to be located in a separated directory #152

Sauci opened this issue Mar 10, 2022 · 0 comments

Comments

@Sauci
Copy link

Sauci commented Mar 10, 2022

In some case (i.e. embedded software applications), write operations to the flash might be an issue. Thus, it would make sense to add an additional parameter to the Logger structure (I would propose BackupDirectory), which specifies where the old log files should be stored. In this way, the active log file path can point to a RAM location of the file system (e.g. /var/log/... on Linux), while the backup directory can point to a flash location.

Sauci pushed a commit to Sauci/lumberjack that referenced this issue Mar 14, 2022
alvarolm added a commit to alvarolm/lumberjack that referenced this issue Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants