pyicub.core.logger
Classes
- class pyicub.core.logger.PyicubLogger
- static getLogger()
- FORMAT = '%(asctime)s - %(levelname)s - %(message)s'
- FORMAT_VERBOSE = '%(asctime)s - %(levelname)s - %(module)s - %(process)d - %(thread)d - %(message)s'
- FORMAT_JSON = '{"asctime": "%(asctime)-15s", "created": %(created)f, "relativeCreated": %(relativeCreated)f, "levelname": "%(levelname)s", "module": "%(module)s", "process": %(process)d, "processName": "%(processName)s", "thread": %(thread)d, "threadName": "%(threadName)s", "message": "%(message)s"}'
- LOGGING_LEVEL = 30
- configure(logging_level, logging_format, logging_file=False, logging_path='.')
- addFileHandler(path)
- addStreamHandler(stream=None)