Documentation ¶
Index ¶
- Variables
- func StandardHandler(l *LogRecord)
- type LogLevel
- type LogRecord
- type Logger
- func (l *Logger) AddHandler(handler func(*LogRecord))
- func (l *Logger) Config(message string)
- func (l *Logger) Fine(message string)
- func (l *Logger) Finer(message string)
- func (l *Logger) Finest(message string)
- func (l *Logger) GetLevel() *LogLevel
- func (l *Logger) Info(message string)
- func (l *Logger) Log(level *LogLevel, message string)
- func (l *Logger) SetLevel(level *LogLevel)
- func (l *Logger) Severe(message string)
- func (l *Logger) Shout(message string)
- func (l *Logger) Warning(message string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OFF = &LogLevel{Object: levelObj.Get("OFF")} SHOUT = &LogLevel{Object: levelObj.Get("SHOUT")} SEVERE = &LogLevel{Object: levelObj.Get("SEVERE")} WARNING = &LogLevel{Object: levelObj.Get("WARNING")} INFO = &LogLevel{Object: levelObj.Get("INFO")} CONFIG = &LogLevel{Object: levelObj.Get("CONFIG")} FINE = &LogLevel{Object: levelObj.Get("FINE")} FINER = &LogLevel{Object: levelObj.Get("FINER")} FINEST = &LogLevel{Object: levelObj.Get("FINEST")} ALL = &LogLevel{Object: levelObj.Get("ALL")} )
Valid LogLevels
Functions ¶
func StandardHandler ¶
func StandardHandler(l *LogRecord)
StandardHandler provides a simple log handler which logs the level, timestamp and message of the log record
Types ¶
type LogRecord ¶
LogRecord encapsulates a goog.log.LogRecord
type Logger ¶
Logger encapsulates a goog.log.Logger
func (*Logger) AddHandler ¶
AddHandler adds a log handler to the Logger
Click to show internal directories.
Click to hide internal directories.