Skip to content

support syslog or console logging instead of files. disable session s…#370

Open
Sniffleupagus wants to merge 1 commit intojayofelony:noaifrom
Sniffleupagus:its_log_its_log
Open

support syslog or console logging instead of files. disable session s…#370
Sniffleupagus wants to merge 1 commit intojayofelony:noaifrom
Sniffleupagus:its_log_its_log

Conversation

@Sniffleupagus
Copy link
Contributor

…tat parsing when not using logfiles. improve date parsing

Add different modes of logging: syslog, console or files (default, current behavior). syslog logging shows up in 'journalctl -u pwnagotchi', and pwnlog can be modified to read from journalctl instead of tailing the file.

Description

added a section to handle syslog logging. put the commented console logger in a "if then".

Motivation and Context

Lets logging go through standard log mechanisms for people who want that.

  • [X ] I have raised an issue to propose this change (required)

How Has This Been Tested?

Tested on no-png-file branch, and against plain noai branch on a 2.9.5 pwny.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • [ X] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [X ] My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • [ X] I've read the CONTRIBUTION guide
  • [X ] I have signed-off my commits with git commit -s

…tat parsing when not using logfiles. improve date parsing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant