-
Notifications
You must be signed in to change notification settings - Fork 6
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
Uniform log system #15
Comments
Hi Salvatore, |
Hi, I like your proposal. However, we should make sure that there will be a log-rotate active for /var/log/hltd/. Remi On 20 Mar 2014, at 17:24, Emilio Meschi [email protected] wrote:
|
There is a logrotate library for python. Can we try and use that? Sent from my iPhone On 21 Mar 2014, at 09:21, "mommsen" <[email protected]mailto:[email protected]> wrote: Hi, I like your proposal. However, we should make sure that there will be a log-rotate active for /var/log/hltd/. Remi On 20 Mar 2014, at 17:24, Emilio Meschi <[email protected]mailto:[email protected]> wrote:
— |
It would be simpler to use the OS logrotate system, adding a config script 2014-03-21 9:48 GMT+01:00 Emilio Meschi [email protected]:
|
Very good! I have no strong preference and this way it is probably better integrated with the rest Sent from my iPhone On 21 Mar 2014, at 11:11, "Salvatore Zaza" <[email protected]mailto:[email protected]> wrote: It would be simpler to use the OS logrotate system, adding a config script 2014-03-21 9:48 GMT+01:00 Emilio Meschi <[email protected]mailto:[email protected]>:
— |
It could be useful to define some rule about log files.
There are 2 main question to define:
1- Log destination (i suggest /var/log/hltd/ )
2- Format:
in my python script i used logging library with this configuration:
and each class creates is own logger:
it will result something like this in the log file (type-date-class-function-message):
The text was updated successfully, but these errors were encountered: