package
0.79.0-preview.4
Repository: https://github.com/vegaprotocol/vega.git
Documentation: pkg.go.dev
# Functions
Account constructs a field with the given VEGA account proto value.
No description provided by the author
BigInt constructs a field with the given key and value.
BigUint constructs a field with the given key and value.
Binary constructs a field that carries an opaque binary blob.
Bool constructs a field that carries a bool.
ByteString constructs a field that carries UTF-8 encoded text as a []byte.
Candle constructs a field with the given VEGA candle proto value.
CandleWithTag constructs a field with the given VEGA candle proto value and key equal to the tag string.
Complex128 constructs a field that carries a complex number.
Complex64 constructs a field that carries a complex number.
Decimal constructs a field with the given key and value.
No description provided by the author
Error constructs a field with the given error value.
No description provided by the author
Float32 constructs a field that carries a float32.
Float64 constructs a field that carries a float64.
No description provided by the author
Int constructs a field with the given key and value.
Int16 constructs a field with the given key and value.
Int32 constructs a field with the given key and value.
Int64 constructs a field with the given key and value.
Int8 constructs a field with the given key and value.
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
Market constructs a field with the given VEGA market proto value.
No description provided by the author
New instantiate a new logger.
NewDefaultConfig creates an instance of the package-specific configuration, given a pointer to a logger instance to be used for logging within the package.
NewDevLogger creates a new logger suitable for development environments.
NewLoggerFromConfig creates a standard or custom logger.
NewProdLogger creates a new logger suitable for production environments, including sending logs to ElasticSearch.
NewTestLogger creates a new logger suitable for golang unit test environments, ie when running "go test ./...".
Order constructs a field with the given VEGA order value.
OrderAmendment constructs a single string field to contain all the object information.
OrderAmendmentProto constructs a single string field to contain all the object information.
No description provided by the author
No description provided by the author
OrderSubmission constructs a single string field to contain all the object information.
OrderSubmissionProto constructs a single string field to contain all the object information.
OrderWithTag constructs a field with the given VEGA order proto value and key equal to the tag string.
ParseLevel parse a log level from a string.
Party constructs a field with the given VEGA party proto value.
No description provided by the author
No description provided by the author
No description provided by the author
ProtoAccount constructs a field with the given VEGA account proto value.
ProtoOrder constructs a field with the given VEGA order proto value.
Reflect constructs a field by running reflection over all the field of value passed as a parameter.
StopOrderCanmcellation constructs a single string field to contain all the object information.
StopOrderSubmission constructs a single string field to contain all the object information.
String constructs a field with the given key and value.
Strings constructs a field with the given key and value.
Time display a time.
TraceID logs the event traceID.
Trade constructs a field with the given VEGA trade proto value.
Uint constructs a field with the given key and value.
Uint16 constructs a field with the given key and value.
Uint32 constructs a field with the given key and value.
Uint64 constructs a field with the given key and value.
Uint8 constructs a field with the given key and value.
Uintptr constructs a field with the given key and value.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
DebugLevel logs are typically voluminous, and are usually disabled in production.
ErrorLevel logs are high-priority.
FatalLevel logs a message, then calls os.Exit(1).
InfoLevel is the default logging priority.
PanicLevel logs a message, then panics.
WarnLevel logs are more important than Info, but don't need individual human review.
# Structs
Config contains the configurable items for this package.
Custom contains the custom log config.
Logger is an abstraction on to of the zap logger.
Zap configures a ZapConfig.
ZapEncoder configures a ZapEncoderConfig.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
A Level is a logging priority.