nxt_log module

Logging utilities and constants.

initial_setup()[source]

module-wide logging boilerplate. Sets logging level. Builds and sets up default handlers.

set_verbosity(level)[source]

Set the verbosity of nxt logging. Controls what to output to stderr. 3 legal levels specified by integer. NOTE node prints are not affected.

0 - Nothing

1 - EXECINFO and higher

2 - Everything

Parameters:level (int) – level to set stderr verbosity to: 0, 1, or 2
Returns:stderr handler, if there is one
Return type:logging.StreamHandler or None
make_session_log(filename=None)[source]

Begin saving log at filename if given, otherwise track to a generated file inside default temporary directory.

Parameters:filename (str, optional) – file to log to, defaults to None
Returns:file being logged to, filename if given.
Return type:str