Documentation ¶
Index ¶
- Constants
- func Init()
- func SetLogLevel(level string) error
- func SetLogOutput(output string)
- func SetLogType(logtype string)
- type Logger
- type Logging
- type YLogger
- func (l *YLogger) Add(key string, value interface{}) *YLogger
- func (l *YLogger) D(args ...interface{})
- func (l *YLogger) E(args ...interface{})
- func (l *YLogger) F(args ...interface{})
- func (l *YLogger) I(args ...interface{})
- func (l *YLogger) T(args ...interface{})
- func (l *YLogger) W(args ...interface{})
- func (l *YLogger) With(key string, value interface{}) *YLogger
Constants ¶
View Source
const LOG_LEVEL_DEBUG = "DEBUG"
View Source
const LOG_LEVEL_ERROR = "ERROR"
View Source
const LOG_LEVEL_FATAL = "FATAL"
View Source
const LOG_LEVEL_INFO = "INFO"
View Source
const LOG_LEVEL_TRACE = "TRACE"
View Source
const LOG_LEVEL_WARN = "WARN"
View Source
const LOG_OUTPUT_STDERR = "STDERR"
View Source
const LOG_OUTPUT_STDOUT = "STDOUT"
View Source
const LOG_TYPE_JSON = "JSON"
View Source
const LOG_TYPE_LTSV = "LTSV"
View Source
const LOG_TYPE_PLAIN = "PLAIN"
View Source
const OUTPUT_JSON = 1
View Source
const OUTPUT_LTSV = 2
View Source
const OUTPUT_PLAIN = 0
View Source
const TIME_FORMAT = "2006/01/02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
ログ出力しきい値を設定します。 level = [TRACE | DEBUG | INFO | WARN | ERROR | FATAL]
Types ¶
type Logger ¶
type Logger interface { T(args ...interface{}) D(args ...interface{}) I(args ...interface{}) W(args ...interface{}) E(args ...interface{}) F(args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.