dionaea
dionaea copied to clipboard
Change format of log messages
ISSUE TYPE
- Feature Idea
DIONAEA VERSION
current version
0.0 to 0.10
CONFIGURATION
Default, unable to change
OS / ENVIRONMENT
- all
SUMMARY
At the moment dionaea uses DDMMYYYY as date format in the log messages. I would like to replace the format with YYYYMMDD.
[16112020 04:49:09] log_sqlite /dionaea/logsql.py:144: Getting RPC Services
4 possibilities
- Just change it. - The easiest one
- Change it and add a legacy flag to the config. - This would enable users to switch to the old format if they need it.
- Use an additional library like https://github.com/fmtlib/fmt - This would allow to specify the format string in the config.
- Combination of 1 and 3 - If the library isn't available at compile time we use the old way as fallback.
Feedback is very welcome.