package
0.4.0
Repository: https://github.com/monetha/mth-core.git
Documentation: pkg.go.dev

# Functions

BlockNumber constructs a "block_number" field with the given block number.
CallbackURL constructs a "callback_url" field with given url.
ClaimID constructs a "claim_id" field with the given ID.
CorrelationID constructs a "correlation_id field with the given id.
DealID constructs a "deal_id" field with the given ID.
Err constructs a "error" field with the error text.
Error logs a message at ErrorLevel.
Fatal is equivalent to Print() followed by a call to os.Exit(1).
Fatalf is equivalent to Printf() followed by a call to os.Exit(1).
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
FieldFloat64 creates a new zapcore field.
FieldFloatInt64 creates a new zapcore field.
FieldsFrom returns fields from a map[string]interface{}.
HTTPHeader constructs a "http_header" field with the given header.
HTTPRequest constructs a "http_request" field with given req.
HTTPResponse constructs a "http_response" field with given resp.
Info logs a message at InfoLevel.
MerchantID constructs a "merchant_id" field with given ID.
NewDevelopment creates logger for development.
NewProduction creates logger for production.
NewZapAdapter creates a new ZapAdapter.
Panic is equivalent to Print() followed by a call to panic().
Panicf is equivalent to Printf() followed by a call to panic().
Panicln is equivalent to Println() followed by a call to panic().
PhoneCode constructs a "phone_code" field with the given phone code.
PhoneNumber constructs a "phone_number" field with the given phone number.
Print calls log.Output to print to the logger.
Printf calls log.Output to print to the logger.
Println calls log.Output to print to the logger.
ReplaceGlobals replaces the global loggers.
RequestMethod constructs a "request_method" field with the given method.
RequestURL constructs a "request_url" field with the given url.
StatusCode constructs a "status_code" field with the given status code.
StdLogger returns a *log.Logger which writes to the underlying logger at InfoLevel.
Sync flushes any buffered log entries.
UserHash constructs a "user_hash" field with the given hash.
UserID constructs a "user_id" field with the given ID.
UserUUID constructs a "user_uuid" field with the given hash.
Warn logs a message at WarnLevel.
With creates a child logger and adds structured context to it.

# Structs

No description provided by the author

# Interfaces

ZapAdapterInterface is a log.Logger implementation that wraps a Zap logger.

# Type aliases

Logger extends zap.Logger.