Discover Packages
github.com/kingsleyzheng/bee
logger
package
Version:
v1.10.0
Opens a new window with list of versions in this module.
Published: Jul 22, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
Types
type BeeLogger
GetBeeLogger(w)
(l) Critical(message)
(l) Criticalf(message, vars)
(l) Debug(message, file, line)
(l) Debugf(message, file, line, vars)
(l) Error(message)
(l) Errorf(message, vars)
(l) Fatal(message)
(l) Fatalf(message, vars)
(l) Hint(message)
(l) Hintf(message, vars)
(l) Info(message)
(l) Infof(message, vars)
(l) SetOutput(w)
(l) Success(message)
(l) Successf(message, vars)
(l) Warn(message)
(l) Warnf(message, vars)
type LogRecord
Source Files
Directories
Documentation Source Files Directories Overview Index Constants Variables Functions Types EndLine() Now(layout) type BeeLogger type LogRecord GetBeeLogger(w) (l) Critical(message) (l) Criticalf(message, vars) (l) Debug(message, file, line) (l) Debugf(message, file, line, vars) (l) Error(message) (l) Errorf(message, vars) (l) Fatal(message) (l) Fatalf(message, vars) (l) Hint(message) (l) Hintf(message, vars) (l) Info(message) (l) Infof(message, vars) (l) SetOutput(w) (l) Success(message) (l) Successf(message, vars) (l) Warn(message) (l) Warnf(message, vars)
Documentation
¶
Copyright 2013 bee authors
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.
Variables
func EndLine() string
func Now(layout string) string
type BeeLogger
func (l *BeeLogger) Critical(message string)
func (l *BeeLogger) Criticalf(message string, vars ...interface{})
func (l *BeeLogger) Debug(message string, file string, line int)
func (l *BeeLogger) Debugf(message string, file string, line int, vars ...interface{})
func (l *BeeLogger) Error(message string)
func (l *BeeLogger) Errorf(message string, vars ...interface{})
func (l *BeeLogger) Fatal(message string)
func (l *BeeLogger) Fatalf(message string, vars ...interface{})
func (l *BeeLogger) Hint(message string)
func (l *BeeLogger) Hintf(message string, vars ...interface{})
func (l *BeeLogger) Info(message string)
func (l *BeeLogger) Infof(message string, vars ...interface{})
func (l *BeeLogger) SetOutput(w io.Writer)
func (l *BeeLogger) Success(message string)
func (l *BeeLogger) Successf(message string, vars ...interface{})
func (l *BeeLogger) Warn(message string)
func (l *BeeLogger) Warnf(message string, vars ...interface{})
type LogRecord
EndLine returns the a newline escape character
Now returns the current local time in the specified layout
type BeeLogger struct {
}
BeeLogger logs logging records to the specified io.Writer
GetBeeLogger initializes the logger instance with a NewColorWriter output
and returns a singleton
Critical outputs a critical log message
Criticalf outputs a formatted critical log message
Debug outputs a debug log message
Debugf outputs a formatted debug log message
Error outputs an error log message
Errorf outputs a formatted error log message
Fatal outputs a fatal log message and exists
Fatalf outputs a formatted log message and exists
Hint outputs a hint log message
Hintf outputs a formatted hint log message
Info outputs an information log message
Infof outputs a formatted information log message
SetOutput sets the logger output destination
Success outputs a success log message
Successf outputs a formatted success log message
Warn outputs a warning log message
Warnf outputs a formatted warning log message
LogRecord represents a log record and contains the timestamp when the record
was created, an increasing id, level and the actual formatted log line.
Source Files
¶
Directories
¶
Show internal
Collapse all
Click to show internal directories.
Click to hide internal directories.