logger – Logger class handler

Module author: Sylvain Hellegouarch <sh@defuze.org>

headstock logger class

class headstock.lib.logger.Logger(path=None, stdout=False, name=None)

Creates a file handler and/or a console handler for logging.

This module uses the builtin logging module.

path None - filesystem path to which associate a logging file handler

stdout False - flag indicating if the console handler should be enabled.

name internal name for the logger

close()
Closes the logger and its handlers.
error()
Logs the current exception info
log(m)
Logs a string m

Table Of Contents

Previous topic

error – Error class handler

Next topic

utils – headstock utils

This Page