package
0.0.0-20240612174559-92eee8cd8dfc
Repository: https://github.com/monstercat/golib.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
NewContext creates a new AppendableContext.
NewContextualPayload creates a new log payload for a Contextual logger.
NewGoogle returns a new Google logger using the provided client and name.
No description provided by the author
# Constants
SeverityCritical Any system level error encountered either hardware related (file system errors, out of memory errors, databaseerrors) or in the application bootstrapping process that prevents the server from running.
SeverityDebug is for local development purposes only.
SeverityError All errors encountered should be logged with this level.
SeverityInfo These log lines contain useful information about the state or result of a current action.
SeverityNotice These log lines typically contain information that you want specifically to stand out amongst the other lines.
SeverityWarning These log lines should contain information about an error that was encountered and recovered.
No description provided by the author
# Structs
AppendableContext is used to provide better naming to the parent context.
AppendableContextualEntry describes a context to which information can be appended.
Contextual allows the user to input extra context information into their logs.
Google logs to the Google cloud console logging platform.
GoogleHTTPRequest is a logger that stores information into the LogRequest variable.
HTTPRequestContext helps with marshalling the *logging.HTTPRequest from Google.
MetricEntry is used to create a specific type of log for use in generating metrics through a cloud logging platform.
Multi will log to multiple outputs.
Standard prints to standard output.
StandardContextEntry is what will be passed into the logger by default.
# Interfaces
ContextualEntry is a log that can have a context.
Default defines a log that is able to set defaults.
HTTPRequest is specific to handling request information.
Logger logs with severity.
# Type aliases
No description provided by the author