Log

class Log(*args, **kwargs)

Logging utilities.

No constructor, only static methods are available.

Methods

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

Initialize self. See help(type(self)) for accurate signature.

static Flags()

Accessor to the log flags.

Returns:
flags : int

The enabled log flags.

static Show(flags)

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)