Documentation ¶
Index ¶
- Constants
- func AddDestination(key string, options sentry.ClientOptions) error
- func DBG(v ...interface{})
- func ERR(e error, v ...interface{})
- func FTL(e error, v ...interface{})
- func INF(v ...interface{})
- func NewFileTransport(outFile string, errFile string, minLogLevel int) *ioTransport
- func NewIoTransport(stdout io.Writer, stderr io.Writer, minLogLevel int) *ioTransport
- func RemoveDestination(key string)
- func SetLogLevel(destinationKey string, minLevel int)
- func WRN(v ...interface{})
- type Colors
- type Context
- func (x *Context) Cxt(k string) *Context
- func (x *Context) DBG(v ...interface{})
- func (x *Context) ERR(e error, v ...interface{})
- func (x *Context) FTL(e error, v ...interface{})
- func (x *Context) INF(v ...interface{})
- func (x *Context) Set(k string, v interface{}) *Context
- func (x *Context) WRN(v ...interface{})
- type LeveledLogger
- type Logger
- type SentryTransport
Constants ¶
View Source
const ( DEBUG = 1 INFO = 2 WARN = 3 ERROR = 4 FATAL = 5 )
log levels
View Source
const FlushTimeout = 2 * time.Second
Variables ¶
This section is empty.
Functions ¶
func AddDestination ¶
func NewFileTransport ¶
returns ioTransport with time and date
func NewIoTransport ¶
returns ioTransport with time only line prefix
func RemoveDestination ¶
func RemoveDestination(key string)
func SetLogLevel ¶
set min log level for a destinition
Types ¶
type LeveledLogger ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) MinLogLevel ¶
func (*Logger) SetLogLevel ¶
type SentryTransport ¶
type SentryTransport struct { Logger // contains filtered or unexported fields }
func NewSentryTransport ¶
func NewSentryTransport(minLogLevel int) *SentryTransport
func (*SentryTransport) Configure ¶
func (tr *SentryTransport) Configure(options sentry.ClientOptions)
func (*SentryTransport) SendEvent ¶
func (tr *SentryTransport) SendEvent(ev *sentry.Event)
Click to show internal directories.
Click to hide internal directories.