Log

class Log(*args, **kwargs)

Logging utilities.

No constructor, only static methods are available.

Methods

Debug
Error
Flags() Accessor to the log flags.
Flush
GetColor
HasDebug
HasError
HasInfo
HasTrace
HasUser
HasWarn
Info
Repeat
SetColor
SetFile
Show() Accessor to the log flags.
Trace
User
Warn
__init__(*args, **kwargs)
static Flags()

Accessor to the log flags.

Returns:

flags : int

The enabled log flags.

static Show()

Accessor to the log flags.

Parameters:

flags : int

Log flags to enable.

Available values to be ORed: - DBG - INFO - USER - WARN - ERROR - TRACE - DEFAULT - NONE - ALL

Examples

>>> import openturns as ot
>>> ot.Log.Show(ot.Log.DEFAULT)