Documentation ¶
Index ¶
- type Log
- func (l *Log) Alert(v ...interface{})
- func (l *Log) Alertf(format string, v ...interface{})
- func (l *Log) Crit(v ...interface{})
- func (l *Log) Critf(format string, v ...interface{})
- func (l *Log) Debug(v ...interface{})
- func (l *Log) Debugf(format string, v ...interface{})
- func (l *Log) Emerg(v ...interface{})
- func (l *Log) Emergf(format string, v ...interface{})
- func (l *Log) Error(v ...interface{})
- func (l *Log) Errorf(format string, v ...interface{})
- func (l *Log) GetDepth() int
- func (l *Log) Info(v ...interface{})
- func (l *Log) Infof(format string, v ...interface{})
- func (l *Log) MakeLog(out *os.File) (Logger, error)
- func (l *Log) Notice(v ...interface{})
- func (l *Log) Noticef(format string, v ...interface{})
- func (l *Log) Output(level, depth int, format string, v ...interface{})
- func (l *Log) OutputForPC(level int, filename, funcname string, line int, format string, ...)
- func (l *Log) SetDepth(depth int)
- func (l *Log) Warn(v ...interface{})
- func (l *Log) Warnf(format string, v ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { logger.Log Format string // ログフォーマット Level int // ログレベル Depth int // 実行された関数、行番号等を取得する際に使用する階層 Binname string // ロードモジュール名 // contains filtered or unexported fields }
Log 構造体は、ログ情報を取り扱う構造体
func (*Log) Emerg ¶
func (l *Log) Emerg(v ...interface{})
Emerg : ログレベル0。呼び出されるとリターンコード127でプログラムを強制終了する
type Logger ¶
type Logger interface { Emerg(...interface{}) Emergf(string, ...interface{}) Alert(...interface{}) Alertf(string, ...interface{}) Crit(...interface{}) Critf(string, ...interface{}) Error(...interface{}) Errorf(string, ...interface{}) Warn(...interface{}) Warnf(string, ...interface{}) Notice(...interface{}) Noticef(string, ...interface{}) Info(...interface{}) Infof(string, ...interface{}) Debug(...interface{}) Debugf(string, ...interface{}) Output(int, int, string, ...interface{}) OutputForPC(int, string, string, int, string, ...interface{}) GetDepth() int SetDepth(int) }
Logger : ログ管理インタフェース
Click to show internal directories.
Click to hide internal directories.