\(\renewcommand\AA{\unicode{x212B}}\)

Logger

This is a Python binding to the C++ class Mantid::Kernel::Logger.

class mantid.kernel.Logger
accumulate((Logger)self, (str)message) None :

accumulate a message to report later

debug((Logger)self, (str)message) None :

Send a message at debug priority:. Anything that may be useful to understand what the code has been doing for debugging purposes.

error((Logger)self, (str)message) None :

Send a message at error priority: An error has occured but the framework is able to handle it and continue

fatal((Logger)self, (str)message) None :

Send a message at fatal priority: An unrecoverable error has occured and the application will terminate

flush((Logger)self) None :

Flush the accumulated message to the current channel.

flushDebug((Logger)self) None :

Flush the accumulated message to the debug channel.

flushError((Logger)self) None :

Flush the accumulated message to the error channel.

flushFatal((Logger)self) None :

Flush the accumulated message to the fatal channel.

flushInformation((Logger)self) None :

Flush the accumulated message to the debug channel.

flushNotice((Logger)self) None :

Flush the accumulated message to the notice channel.

flushWarning((Logger)self) None :

Flush the accumulated message to the warning channel.

static get((str)arg1) Logger :

Creates the named logger. This method is static, call as Logger.get(‘logger_name’). The name is used as a prefix within the log file so that msg origins can be traced more easily.

information((Logger)self, (str)message) None :

Send a message at information priority: Useful but not vital information to be relayed back to the user.

notice((Logger)self, (str)message) None :

Sends a message at notice priority: Really important information that should be displayed to the user, this should be minimal. The default logging level is set here unless it is altered.

purge((Logger)self) None :

Clear the accumulated messages without logging.

warning((Logger)self, (str)message) None :

Send a message at warning priority: Something was wrong but the framework was able to continue despite the problem.