# README
logger
this is just a wrapper on zap
Integration
either you can import default config and edit it out according to your needs or you can use Config
struct to create your own config. for example:
- importing default config and then edit out the values according to your needs
lOptions := logger.ConfigDefault
// edit it according to your needs
- creating your own config
lOptions := logger.Options{
JSONEncoding: true,
}
- pass those options inside Configure function to initialize the logger.
err := logger.Configure(lOptions)
and then you can use that logger according to your needs.
Example
below are the examples which gonna help you to get started with the the integration.
# Packages
No description provided by the author
# Functions
Configure initializes Istio's logging subsystem.
Debug outputs a message at debug level.
Error outputs a message at error level.
Info outputs a message at information level.
Sync flushes any buffered log entries.
Warn outputs a message at warn level.
With creates a child logger and adds structured context to it.
# Constants
DebugLevel enables debug level logging.
ErrorLevel enables error level logging.
InfoLevel enables info level logging.
NoneLevel disables logging.
WarnLevel enables warn level logging.
# Variables
ConfigDefault it is the set of default configs.
# Structs
Config defines the set of cfg supported by Istio's component logging package.
No description provided by the author
No description provided by the author
# Type aliases
Level is an enumeration of all supported log levels.