Files
meshing-around/logs/README.md
2025-01-05 21:14:55 -08:00

1.5 KiB

Logs will collect here. Give a day of logs or a bunch of messages to have good reports.

Reporting is via ../etc/report_generator5.py. The report_generator5 has newer feel and HTML5 coding. The index.html output is published in ../etc/www there is a .cfg file created on first run for configuring values as needed.

  • multi_log_reader = True on by default will read all logs (or set to false to return daily logs)
  • Make sure to have SyslogToFile = True and default of DEBUG log level to fully enable reporting! ‼️
  • provided serviceTimer templates in etc/

reportView

Logging messages to disk or 'Syslog' to disk uses the python native logging function.

[general]
# logging to file of the non Bot messages only
LogMessagesToFile = False
# Logging of system messages to file, needed for reporting engine
SyslogToFile = True
# logging level for the bot (DEBUG, INFO, WARNING, ERROR, CRITICAL)
sysloglevel = DEBUG
# Number of log files to keep in days, 0 to keep all
log_backup_count = 32

To change the stdout (what you see on the console) logging level (default is DEBUG) see the following example, line is in ../modules/log.py

# Set level for stdout handler
stdout_handler.setLevel(logging.INFO)

There is a web-server module you can run python modules/web.py from the project root directory and it will serve up the web content. by default. http://localhost:8420