From f30ac7a55c5fcfc7db3062b23eb5d8057cea4ec0 Mon Sep 17 00:00:00 2001 From: Etienne Pallier Date: Thu, 12 Dec 2019 16:41:57 +0100 Subject: [PATCH] fichier logs/Readme remis pour les tests unit... --- logs/Readme.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+), 0 deletions(-) create mode 100644 logs/Readme.md diff --git a/logs/Readme.md b/logs/Readme.md new file mode 100644 index 0000000..2e530c6 --- /dev/null +++ b/logs/Readme.md @@ -0,0 +1,28 @@ +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') -- libgit2 0.21.2