Documentation
¶
Index ¶
- Constants
- func DefaultLogger() *log.Logger
- func HTTPAccessLogger(filename string, maxSize int, maxBackups int, maxAge int, compress bool) *log.Logger
- func Logger(logLevel string, prefix string, flag int, filename string, maxSize int, ...) *log.Logger
- func NewCallerWriter(out io.Writer, prefix string, flag int) io.Writer
- func NewFileWriter(filename string, maxSize int, maxBackups int, maxAge int, compress bool) io.Writer
- func NewLogLevelFilter(logLevel string, writer io.Writer) io.Writer
- type ApacheCombinedLogger
- type CallerWriter
- type LogLevel
Constants ¶
View Source
const ( DEBUG = iota INFO WARN ERR )
Variables ¶
This section is empty.
Functions ¶
func DefaultLogger ¶
func HTTPAccessLogger ¶
func NewFileWriter ¶
Types ¶
type ApacheCombinedLogger ¶
func (ApacheCombinedLogger) Log ¶
func (l ApacheCombinedLogger) Log(record accesslog.LogRecord)
type CallerWriter ¶
type CallerWriter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.