Name Last Update
..
Readme.md Loading commit data...

Readme.md

File Logs are organized by module

every file is reseted at pyros launch except pyros.log You must clean this directory before pushing. You can use the pyrosrun.sh clear_logs command.

For example, logs for the module MONITORING must be in the file :

monitoring.logs

The logs are formated like this :

'%(filename)s : %(lineno)s -> %(message)s'
"filename : line -> message".

To use the logger you must import logger.config

import logger.config as l log = l.setupLogger("name", "file_name")

Basic log :

log.info('Your message')

if you want to log in the file pyros.log you must use logging

import logger.config as l l.logging.info('Your message')