DinoTools / dionaea

Home of the dionaea honeypot
https://dionaea.readthedocs.io/
GNU General Public License v2.0
702 stars 183 forks source link

Change format of log messages #310

Open phibos opened 3 years ago

phibos commented 3 years ago
ISSUE TYPE
DIONAEA VERSION
current version
0.0 to 0.10
CONFIGURATION

Default, unable to change

OS / ENVIRONMENT
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

  1. Just change it. - The easiest one
  2. Change it and add a legacy flag to the config. - This would enable users to switch to the old format if they need it.
  3. Use an additional library like https://github.com/fmtlib/fmt - This would allow to specify the format string in the config.
  4. 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.