Class: Logger

ko/logging~ Logger


Logger()

Logger object

Example
set log level to debug:
`myLogger.setLevel(myLogger.DEBUG);`
Properties:
Name Type Default Description
NOTSET int

NOTSET log level

DEBUG int

DEBUG log level

INFO int

INFO log level

WARN int

WARN log level

ERROR int

ERROR log level

CRITICAL int

CRITICAL log level

level int

The current log level

setLevel function

Set the logging level

debug function message

Log a debug message

info function message

Log a info message

error function message

Log a error message

critical function message

Log a critical message

exception function message

Log a exception message

warn|warning function message

Log a warn message

time function

start timer

timeEnd function

end timer

Methods


<static> critical(message)

Log a critical message

Parameters:
Name Type Description
message String

<static> debug(message)

Log a debug message

Parameters:
Name Type Description
message String

<static> error(message, noTraceback)

Log an error message

Parameters:
Name Type Description
message String
noTraceback Boolean

Whether to log a backtrace


<static> exception(e, message)

Log an exception

Parameters:
Name Type Description
e Exception
message String

<static> info(message)

Log an info message

Parameters:
Name Type Description
message String

<static> setLevel(level)

Set the logging level for the current logger, eg. logging.LOG_DEBUG

Parameters:
Name Type Description
level Long

<static> warn(message)

Log a warning message

Parameters:
Name Type Description
message String