vlog

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This code serves as an example and is not meant for production use.

Copyright 2020 Veeva Systems 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

View Source
const (
	ColorBlack = iota + 30
	ColorRed
	ColorGreen
	ColorYellow
	ColorBlue
	ColorMagenta
	ColorCyan
	ColorWhite

	ColorBold     = 1
	ColorDarkGray = 90
)

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug - log message in debug level

func Debugf

func Debugf(msg string, v ...interface{})

Debugf - log message in debug level

func Error

func Error(msg string)

Error - log message in error level

func Errorf

func Errorf(msg string, v ...interface{})

Errorf - log message in error level

func Fatal

func Fatal(msg string)

Fatal - log message in fatal level

func Fatalf

func Fatalf(msg string, v ...interface{})

Fatalf - log message in fatal level

func Info

func Info(msg string)

Info - log message in info level

func Infof

func Infof(msg string, v ...interface{})

Infof - log message in info level

func InitLog

func InitLog(noColor bool)

InitLog - initialize the logging

func NoFormatLog

func NoFormatLog(msg string)

NoFormatLog - log message without any format or level

func NoFormatLogf

func NoFormatLogf(msg string, v ...interface{})

NoFormatLogf - log message without any format or level

func Panic

func Panic(msg string)

Panic - log message in panic mode

func Panicf

func Panicf(msg string, v ...interface{})

Panicf - log message in panic mode

func Trace

func Trace(msg string)

Trace - log message in trace level

func Tracef

func Tracef(msg string, v ...interface{})

Tracef - log message in trace level

func Warn

func Warn(msg string)

Warn - log message in warn level

func Warnf

func Warnf(msg string, v ...interface{})

Warnf - log message in warn level

Types

This section is empty.

Jump to

Keyboard shortcuts

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