package
0.0.0-20221121145914-6c624c4f08c4
Repository: https://github.com/inverse-inc/go-utils.git
Documentation: pkg.go.dev
# Functions
Add custom fields to the context This supports a tuple for the args ex: "mykey1", "myval1", "mykey2", "myval2".
panic while logging a problem as critical.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Get a logger that isn't tied to any specific context.
Add a handler to a logger in the context.
Logging helper that allows for lazy evaluation of debug statements The function f will only be executed if the current logger (in the context) is in debug The function f can also log statements on its own If an empty string is returned from f, it will not be logger.
Get a logger dummy context (empty context).
Get the level of a logger from a context.
Create a new logger in a context Will ensure that its initialized with the PID of the current process.
Generate a new UUID for the current request and add it to the context.
Set the level of a logger from a context This will Die/panic if the provided level is invalid.
Get a logger initialized with the values from the context (pid, request id and additionnal elements).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Set the ProcessName.
Transfer the logger from a context to another.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
Structure that contains the necessary data to make this logger work.
# Type aliases
No description provided by the author