Documentation ¶
Index ¶
- Constants
- func GetLevel() string
- func SetLevel(logLevel string)
- type OldLogger
- type Shim
- func (s *Shim) Crit(msg string, ctx ...interface{})
- func (s *Shim) Debug(msg string, ctx ...interface{})
- func (s *Shim) Error(msg string, ctx ...interface{})
- func (s *Shim) Info(msg string, ctx ...interface{})
- func (s *Shim) New(ctx ...interface{}) OldLogger
- func (s *Shim) Warn(msg string, ctx ...interface{})
Constants ¶
View Source
const ( LOGLEVEL_ENV_VAR = "ECS_LOGLEVEL" LOGFILE_ENV_VAR = "ECS_LOGFILE" DEFAULT_LOGLEVEL = "info" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OldLogger ¶ added in v1.1.0
type OldLogger interface { // New returns an OldLogger instance with the passed ctx plus existing ctx New(ctx ...interface{}) OldLogger // Log a message at the given level with context key/value pairs Debug(msg string, ctx ...interface{}) Info(msg string, ctx ...interface{}) Warn(msg string, ctx ...interface{}) Error(msg string, ctx ...interface{}) Crit(msg string, ctx ...interface{}) }
Click to show internal directories.
Click to hide internal directories.