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

Improve logging system [logging update] #43

Closed
gekigek99 opened this issue Oct 14, 2020 · 3 comments
Closed

Improve logging system [logging update] #43

gekigek99 opened this issue Oct 14, 2020 · 3 comments
Assignees

Comments

@gekigek99
Copy link
Member

the script has come to the point where a reliable and complete log system is required.
I don't have particular plans but a good starting point could be to add in the logger() function the ability to write the logs to a file.

@gekigek99 gekigek99 self-assigned this Oct 21, 2020
@lubocode
Copy link
Contributor

lubocode commented Nov 5, 2020

I would be for a logging system, where the logger function is extended with different logging levels and the debug flag is converted to a loggingLevel enum, which is passed as a second argument to the logger.
The enum could then entail levels like info, dev and debug, where info is used for the user, dev for development purposes and debug for intricate output like the full byte array traffic.

@gekigek99
Copy link
Member Author

The various levels might be:

  1. None
  2. Info
  3. Analytics
  4. Dev
  5. ByteNerd

These options should be applied to:

  • Terminal
  • File

Which output has which debug level would be specified in the config file

@gekigek99 gekigek99 changed the title Improve logging system Improve logging system [logging update] Apr 16, 2021
@gekigek99 gekigek99 added this to To do in logging update Jun 13, 2021
@gekigek99
Copy link
Member Author

last implementation commit: 0dce714

(there are other older commits related to this issue)

@gekigek99 gekigek99 moved this from To do to Done in logging update Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants