logging-entrypoints: Entry points for logging actions

Description Usage Arguments Details Examples

Description

Generate a log record and pass it to the logging system.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
logdebug(msg, ..., logger = "")

logfinest(msg, ..., logger = "")

logfiner(msg, ..., logger = "")

logfine(msg, ..., logger = "")

loginfo(msg, ..., logger = "")

logwarn(msg, ..., logger = "")

logerror(msg, ..., logger = "")

levellog(level, msg, ..., logger = "")

Arguments

msg

the textual message to be output, or the format for the ... arguments

...

if present, msg is interpreted as a format and the ... values are passed to it to form the actual message.

logger

the name of the logger to which we pass the record

level

The logging level

Details

A log record gets timestamped and will be independently formatted by each of the handlers handling it.

Leading and trailing whitespace is stripped from the final message.

Examples

1
2
3
4
logReset()
addHandler(writeToConsole)
loginfo('this goes to console')
logdebug('this stays silent')

logging documentation built on July 14, 2019, 5:02 p.m.