parsley.logger.loggerout package¶
Submodules¶
parsley.logger.loggerout.abstractloggerout module¶
Abstract base class for a logger output.
-
class
parsley.logger.loggerout.abstractloggerout.
Loggerout
¶ Bases:
object
Abstract base class for log message sinks. For existing implementations, see parsley.logger.loggerout.
-
flush
(wasused)¶ Commits the log content to the sink and closes the logger.
- Parameters
wasused (bool) – If there was any useful logged message (instead of just headers and footers).
- Return type
None
-
log
(content)¶ Writes the rendered content to the logger (can be log messages, html header or footer, …).
- Parameters
content (str) –
- Return type
None
-
parsley.logger.loggerout.externalprogramloggerout module¶
-
class
parsley.logger.loggerout.externalprogramloggerout.
ExternalProgramLoggerout
(**kwa)¶ Bases:
parsley.logger.loggerout.abstractloggerout.Loggerout
-
flush
(wasused)¶ Commits the log content to the sink and closes the logger.
- Parameters
wasused – If there was any useful logged message (instead of just headers and footers).
-
log
(content)¶ Writes the rendered content to the logger (can be log messages, html header or footer, …).
-
parsley.logger.loggerout.filestreamloggerout module¶
-
class
parsley.logger.loggerout.filestreamloggerout.
FilestreamLoggerout
(filename=None)¶ Bases:
parsley.logger.loggerout.abstractloggerout.Loggerout
-
flush
(wasused)¶ Commits the log content to the sink and closes the logger.
- Parameters
wasused – If there was any useful logged message (instead of just headers and footers).
-
log
(content)¶ Writes the rendered content to the logger (can be log messages, html header or footer, …).
-
Module contents¶
Output destinations for log message strings.