Discover Packages
github.com/alanpeng/qingstor-sdk-go
logger
package
Version:
v2.0.0-beta.1+incompat...
Opens a new window with list of versions in this module.
Published: Dec 3, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package logger provides support for logging to stdout and stderr.
Log entries will be logged with format: $timestamp $hostname [$pid]: $severity $message.
func Debug(format string , v ...interface{})
Debug logs a message with severity DEBUG.
func Error(format string , v ...interface{})
Error logs a message with severity ERROR.
func Fatal(format string , v ...interface{})
Fatal logs a message with severity ERROR followed by a call to os.Exit().
GetLevel get the log level string.
func Info(format string , v ...interface{})
Info logs a message with severity INFO.
SetLevel sets the log level. Valid levels are "debug", "info", "warn", "error", and "fatal".
func Warn(format string , v ...interface{})
Warn logs a message with severity WARNING.
type LogFormatter struct{}
LogFormatter is used to format log entry.
Format formats a given log entry, returns byte slice and error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.