Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Log absolutely nothing LOGLEVEL_NONE int = iota // Log situations that are not expected to happen and // are difficult to handle (e.g. by closing the connection without further consideration) LOGLEVEL_ERRORS // Log non-critical situations that might happen, but shouldn't (e.g. returning STATUS_NOT_FOUND) LOGLEVEL_WARNINGS // Log situations that are expected, but important for the operation LOGLEVEL_INFO // Log everything LOGLEVEL_DEBUG )
Variables ¶
This section is empty.
Functions ¶
func GetLogToken ¶
func GetLogToken() string
Returns a short random alphanumeric string. This is used to assign special tokens to RPCs in order to track them across log lines.
func IsLoggingEnabled ¶
Performance-enhancer: Prevent unnecessary log calls
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.