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

Customizable logging from the default configuration file #3

Open
phosphore opened this issue Feb 24, 2016 · 2 comments
Open

Customizable logging from the default configuration file #3

phosphore opened this issue Feb 24, 2016 · 2 comments
Assignees

Comments

@phosphore
Copy link
Collaborator

Customizable logging from the default configuration file "NSAway.ini"

  • Logging Level
  • When/Intervals
  • Number of log rotations to be kept (backupCount)

See https://docs.python.org/2/library/logging.handlers.html#timedrotatingfilehandler

@TheZ3ro
Copy link
Owner

TheZ3ro commented Feb 25, 2016

Now the logging print line like this:

Started patrolling on module: [u'video', u'arp_poison', u'sslstrip', u'sslmitm'] every 3.0 seconds
Exiting because exit signal was received

It will be good if we can restore the previous logging format [{date}] {level} | {msg}

[2016-02-25 14:02:19.015050] I | Started patrolling on module: [u'video', u'arp_poison', u'sslstrip', u'sslmitm'] every 3.0 seconds
[2016-02-25 14:02:30.937657] I | Exiting because exit signal was received

This can be done with a log function (like before the RotatingLog) that use the rotating log instead of writing to file.

I assign you this issue ;)

@TheZ3ro
Copy link
Owner

TheZ3ro commented Feb 27, 2016

Loggin format fixed in d979eee

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

2 participants