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

Suggest a fixed name for logging #39

Closed
bradanlane opened this issue May 31, 2016 · 2 comments
Closed

Suggest a fixed name for logging #39

bradanlane opened this issue May 31, 2016 · 2 comments

Comments

@bradanlane
Copy link

I've gone ahead and changed log.c so the logging file is a fixed name (traffic.log) rather than a log with a time stamp in it. The reason is to leverage logrotate to manage logs.

I'm not suggesting that "traffic.log" is the best name but the use of logrotate is a nice standard solution for Linux systems. I'm not aware of the Windows equivalent for logrotate.

@bradanlane
Copy link
Author

bradanlane commented Jun 23, 2016

FYI: I've coded this and can submit if desired. It now uses "-o" as a command line argument or "LOGNAME" as a conf file entry. Each take a file name as its argument. When a fie name is provided, activity logging will stay with the named file rather than change with the date.

The assumption is this option is used in conjunction with logrotate. When using logrotate, the copytruncate option is used so the open file is not lost.

If the code is pulled, then the documentation will need to be update to reflect the new options and their behavior / usage. (the current limitation on doc is covered by #30)

@wb2osz
Copy link
Owner

wb2osz commented Jun 18, 2017

Similar functionality is now in the "dev" branch.
52927ce

@wb2osz wb2osz closed this as completed Jun 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants