dionaea icon indicating copy to clipboard operation
dionaea copied to clipboard

Change format of log messages

Open phibos opened this issue 5 years ago • 0 comments

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

  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.

phibos avatar Nov 16 '20 05:11 phibos