std/io/logging¶
module io.logging
Logging: structured events written to a destination, apart from the
result. A logger owns no writer: it names a producer and holds a
destination, as sink would write it (module io): stderr or a file
in a format, a network endpoint, or a Channel<LogEvent> that keeps the
events as values for the host. A program imports the module:
import logging.
LogLevel— How severe an event is.Trace— The least severeLogLevel, belowDebug.Debug— TheLogLevelaboveTraceand belowInfo.Info— TheLogLevelaboveDebugand belowWarn; a logger's threshold unless written.Warn— TheLogLevelaboveInfoand belowError.Error— The most severeLogLevel, aboveWarn.LogEvent— One logged event: itslevel, theloggerthat produced it, itsmessageand itsdata.Logger— A producer of events: itsnameand the least severelevelit writes.trace— Writes oneTraceevent withmessageanddatatolog's destination whenlog's threshold isTrace, and givesUnit.debug— Writes oneDebugevent withmessageanddatatolog's destination whenlog's threshold is at mostDebug, and givesUnit.info— Writes oneInfoevent withmessageanddatatolog's destination whenlog's threshold is at mostInfo, and givesUnit.warn— Writes oneWarnevent withmessageanddatatolog's destination whenlog's threshold is at mostWarn, and givesUnit.error— Writes oneErrorevent withmessageanddatatolog's destination, whateverlog's threshold, and givesUnit.Cell— The cellhql renderis running, bound ascell.