logger module¶
-
class
logger.
Logger
[source]¶ Bases:
object
-
CRITICAL
= 0¶
-
INFO
= 2¶
-
WARNING
= 1¶
-
levels
= ['CRITICAL', 'WARNING', 'INFO']¶
-
write
(level, line, nick=None, location=None)[source]¶ Write out to the logfile of either default location or otherwise specified. Includes calling class in its logged line.
Args: level: enumerated thing from the logger class. line: string. thing to write out to the logger. nick: string. determines filename. location: where to write the logfile out to.
Returns: nothing.
-