Files
meshing-around/logs
Dev b351ed0cf4 Create mesh_network_analyzer.py
Adding a log analyser that will take the logfile and parse it into a html file for monitoring. Run the python script within the logfolder from meshingaround. by default this is sent to /var/www/html/index.html 


See: https://ibb.co/ymz9TxZ
2024-10-03 13:01:21 +02:00
..
2024-09-27 17:18:35 -07:00

Logs will collect here.

Logging messages to disk or Syslog to disk uses the python native logging function. Take a look at the /modules/log.py you can set the file logger for syslog to INFO for example to not log DEBUG messages to file log, or modify the stdOut level.

[general]
# logging to file of the non Bot messages
LogMessagesToFile = True
# Logging of system messages to file
SyslogToFile = True

Example to log to disk only INFO and higher (ignore DEBUG)

*log.py
file_handler.setLevel(logging.INFO) # DEBUG used by default for system logs to disk example here shows INFO