log

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug - Debug function

func Debugf

func Debugf(format string, args ...interface{})

Debugf - Debugf function

func Debugln

func Debugln(args ...interface{})

Debugln - Debugln function

func Error

func Error(args ...interface{})

Error - Error function

func Errorf

func Errorf(format string, args ...interface{})

Errorf - Errorf function

func Errorln

func Errorln(args ...interface{})

Errorln - Errorln function

func Fatal

func Fatal(args ...interface{})

Fatal - Fatal function

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf - Fatalf function

func Fatalln

func Fatalln(args ...interface{})

Fatalln - Fatalln function

func Info

func Info(args ...interface{})

Info - Info function

func Infof

func Infof(format string, args ...interface{})

Infof - Infof function

func Infoln

func Infoln(args ...interface{})

Infoln - Infoln function

func InitAccessLogger added in v0.1.3

func InitAccessLogger(h http.Handler, logFile, level string) http.Handler

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

func Panic

func Panic(args ...interface{})

Panic - Panic function

func Panicf

func Panicf(format string, args ...interface{})

Panicf - Panicf function

func Panicln

func Panicln(args ...interface{})

Panicln - Panicln function

func Print

func Print(args ...interface{})

Print - Print function

func Printf

func Printf(format string, args ...interface{})

Printf - Printf function

func Println

func Println(args ...interface{})

Println - Println function

func Warn

func Warn(args ...interface{})

Warn - Warn function

func Warnf

func Warnf(format string, args ...interface{})

Warnf - Warnf function

func Warning

func Warning(args ...interface{})

Warning - Warning function

func Warningf

func Warningf(format string, args ...interface{})

Warningf - Warningf function

func Warningln

func Warningln(args ...interface{})

Warningln - Warningln function

func Warnln

func Warnln(args ...interface{})

Warnln - Warnln function

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL