Categorygithub.com/resurfaceio/logger-go/v3
modulepackage
3.4.0
Repository: https://github.com/resurfaceio/logger-go.git
Documentation: pkg.go.dev

# README

# Functions

get package global httpRules containing default rules sets.
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
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
No description provided by the author
No description provided by the author
NewHttpLogger returns a pointer to a new HttpLogger object, with the given options applied, and an error.
NewHttpLoggerForMux returns a pointer to an instance of an HttpLoggerForMux struct with the default options applied and an error.
NewHttpLoggerForMuxOptions(o Options) returns a pointer to a HttpLoggerForMux struct with the given options o applied and an error.
No description provided by the author
NewNetHttpClientLogger() takes no arguments and returns 2 objects; a pointer to an instance of an NetHttpClientLogger struct and an error.
NewNetHttpClientLoggerOptions() takes 1 argument of type logger.Options and returns 2 objects; a pointer to an instance of an NetHttpClientLogger struct and an error.
SendHttpMessage(l *HttpLogger, resp *http.Response, req *http.Request, now int64, interval int64) Uses logger l to send a log of the given resp and req to the loggers url here, now refers to the time at which the request was received and interval corresponds to the time between request and response.

# Variables

No description provided by the author

# Structs

HttpLogger is the struct contains a pointer to a baseLogger instance and a set of rules used to define the behaviour of the logger.
No description provided by the author
No description provided by the author
struct for rules that are applied to http logging messages.
NetHttpClientLogger defines a struct used to log specifically from the client side of API interactions using the net/http package.
Options struct is passed to a "NewLogger" function to specify the desired configuration of the logger to be created.
No description provided by the author
No description provided by the author