Documentation ¶
Overview ¶
Copyright 2019, Oath Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func InitAccessLogger(h http.Handler, logFile, level string) http.Handler
- func InitLogger(logFile, level string)
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- func Warnln(args ...interface{})
- type AccessLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAccessLogger ¶ added in v0.1.3
InitAccessLogger returns a handler that wraps the supplied delegate with access logging.
func InitLogger ¶
func InitLogger(logFile, level string)
InitLogger initializes a logger object with log rotation
Types ¶
type AccessLogger ¶ added in v0.1.3
type AccessLogger struct {
// contains filtered or unexported fields
}
func (*AccessLogger) Log ¶ added in v0.1.3
func (l *AccessLogger) Log(record accesslog.LogRecord)
Click to show internal directories.
Click to hide internal directories.