Import std.log.level
std.log.level
LogLevel, how much a log line matters, and LogFilter, the least level written for each module, as FB_LOG's text sets it: "debug" for every module, or "info,net=trace,net.http=off", a level for every module and one for each module named.
std/log/level.fb
Types
LogLevel
enum
Public Enum LogLevel
How much a line matters, the least first.
-
Each step, for following what a program does.
-
What helps find a bug.
-
What a program did, as it goes.
-
Something that may be wrong.
-
Something that went wrong.
-
For a filter: nothing is written.
LogFilter
struct
Public Struct LogFilter Implements Printable
The least level written for each module: its own, when it has one, or the nearest module's it's in, so "net.http.client" has "net.http"'s or else "net"'s, or else the base level that every other module has. It's Sendable, so a LogOutput shares it with every thread.
-
Every module at
level. -
FB_LOG's
text: parts between commas, each a level, which every module gets, or a module, an '=', and its level, with spaces around them left out. Every module is at INFO unless a part says otherwise, and a later part wins. Null when a part is neither, or a module's name is empty. -
The same filter, with
module, and the modules in it that have no level of their own, atlevel. -
The level every module without one of its own has.
-
The least level written for
module: its own, or the nearest module's it's in, or the base. -
Whether a line at
level, which isn't OFF, is written formodule. -
As FB_LOG's text has it, its modules by name: "info,net=trace".
Functions
ParseLogLevel
function
Public Function ParseLogLevel(text: String): LogLevel?
The level a name says, in any letter case: "trace", "debug", "info", "warn" or "warning", "error", or "off". Null for anything else.
Report an issue with this page or with FutureBlitz on GitHub.