Logger (fixie.logger
)¶
Logging tools for fixie
-
class
fixie.logger.
Logger
(filename=None)[source]¶ A logging object for fixie that stores information in line-oriented JSON format.
Parameters: filename : str or None, optional
Path to logfile, if None, defaults to $FIXIE_LOGFILE.
-
load
()[source]¶ Loads all of the records from the logfile and returns a list of dicts. If the log file does not yet exist, this returns an empty list.
-
log
(message, category='misc', data=None)[source]¶ Logs a message, the timestamp, its category, and the and any data to the log file.
-
filename
¶
-