Documentation ¶
Overview ¶
Package logging package contains functionality for viam-server logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int
Level is an enum of log levels. Its value can be `DEBUG`, `INFO`, `WARN` or `ERROR`.
func LevelFromString ¶
LevelFromString parses an input string to a log level. The string must be one of `debug`, `info`, `warn` or `error`. The parsing is case-insensitive. An error is returned if the input does not match one of labeled cases.
func (Level) MarshalJSON ¶
MarshalJSON converts a log level to a json string.
func (*Level) UnmarshalJSON ¶
UnmarshalJSON converts a json string to a log level.
Click to show internal directories.
Click to hide internal directories.