6from .bridge_loggerinterface
import ILogger
7from .bridge_loggerhelpers
import LoggerHelpers
18 self.
_file = open(filename, mode=
"w")
33 formattedLine = LoggerHelpers.FormatLogLine(logLevel, msg)
34 self.
_file.write(
"{}\n".format(formattedLine))
@ Close
Window is asked to close itself, generally sent by the window itself in response to a button up in a ...
Represents a logger that writes its output to a file.
None LogError(self, str msg)
Log error messages to the configured output.
None LogTrace(self, str msg)
Log trace messages to the configured output.
_filename
Name of the file to which to write log output.
None LogInfo(self, str msg)
Log informational messages to the configured output.
None __init__(self, str filename)
Constructor.
_file
File object to which to write log output.
ILogger CreateLogger(str filename)
Create an instance of a file logger, which writes to a file.
None _WriteLine(self, str logLevel, str msg)
Write a formatted line to the log.
Represents an implementation of a logger object as called from the Logger class.