Commit 43c15c9ee41fcfea800a5a7046bed39e2b57d8fe

Authored by Etienne Pallier
1 parent 3edb50a6
Exists in dev

(clean) supprimé ancien dossier /logs/ (à la racine projet)

Showing 1 changed file with 0 additions and 28 deletions   Show diff stats
logs/Readme.md deleted
... ... @@ -1,28 +0,0 @@
1   -File Logs are organized by module
2   -
3   -every file is reseted at pyros launch except pyros.log
4   -You must clean this directory before pushing.
5   -You can use the pyrosrun.sh clear_logs command.
6   -
7   -For example, logs for the module MONITORING must be in the file :
8   -
9   -> monitoring.logs
10   -
11   -The logs are formated like this :
12   -
13   -> '%(filename)s : %(lineno)s -> %(message)s'
14   -> "filename : line -> message".
15   -
16   -To use the logger you must import logger.config
17   -
18   -> import logger.config as l
19   -> log = l.setupLogger("name", "file_name")
20   -
21   -Basic log :
22   -
23   -> log.info('Your message')
24   -
25   -if you want to log in the file pyros.log you must use logging
26   -
27   -> import logger.config as l
28   -> l.logging.info('Your message')