Documentation ¶
Overview ¶
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.
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = GetBeeLogger(os.Stdout)
Functions ¶
Types ¶
type BeeLogger ¶
type BeeLogger struct {
// contains filtered or unexported fields
}
BeeLogger logs logging records to the specified io.Writer
func GetBeeLogger ¶
GetBeeLogger initializes the logger instance with a NewColorWriter output and returns a singleton
Click to show internal directories.
Click to hide internal directories.