Documentation
¶
Index ¶
- Constants
- func Debug(msg string, fields ...zap.Field)
- func Error(category string, msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func Info(category string, msg string, fields ...zap.Field)
- func Logger() *zap.Logger
- func NewLogger(appName string, env string, logPath string, stdout bool)
- func Panic(msg string, fields ...zap.Field)
- func Sync() error
- func WrapCaptureError(err error, fields ...zap.Field) error
- func WrapError(category string, err error, fields ...zap.Field) error
- type TracerData
Constants ¶
View Source
const ( LOGGER_API_RESPONSE_TIME = "api_response_time" LOGGER_API_APP_PANIC = "api_app_panic" LOGGER_API_APP_ERROR = "api_app_error" LOGGER_API_APP_REQUEST_ERROR = "api_app_request_error" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TracerData ¶
type TracerData struct {
// contains filtered or unexported fields
}
func NewTracerData ¶
func NewTracerData() *TracerData
func (*TracerData) Add ¶
func (d *TracerData) Add(key string, data interface{}) *TracerData
func (TracerData) Data ¶
func (d TracerData) Data() interface{}
Click to show internal directories.
Click to hide internal directories.