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

Change format of log messages #310

Open
phibos opened this issue Nov 16, 2020 · 0 comments
Open

Change format of log messages #310

phibos opened this issue Nov 16, 2020 · 0 comments
Assignees
Milestone

Comments

@phibos
Copy link
Member

phibos commented Nov 16, 2020

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 phibos self-assigned this Nov 16, 2020
@phibos phibos added this to the 0.12.0 milestone Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant