Documentation ¶
Index ¶
- Variables
- func GetFormatListString() []string
- func GetGID() uint64
- func GetIOWriter(level Level, msgPrefixPattern string, msgPrefixArgs ...interface{}) io.Writer
- func GetLevelListString() []string
- func SetFormat(fmt string)
- func SetLevel(level string)
- type Format
- type IOWriter
- type Level
- func (level Level) Log(message string)
- func (level Level) LogData(message string, data interface{})
- func (level Level) LogError(err error) bool
- func (level Level) LogErrorCtx(levelElse Level, context string, err error) bool
- func (level Level) LogErrorCtxf(levelElse Level, contextPattern string, err error, args ...interface{}) bool
- func (level Level) Logf(format string, args ...interface{})
- func (level Level) String() string
- func (level Level) Uint8() uint8
- func (level Level) WithFields(message string, fields map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RootPath string = ""
)
Copyright 2017 Nicolas JUHEL
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.
Functions ¶
func GetFormatListString ¶
func GetFormatListString() []string
func GetIOWriter ¶
func GetLevelListString ¶
func GetLevelListString() []string
Types ¶
type Level ¶
type Level uint32
Level type
func (Level) LogErrorCtx ¶
func (Level) LogErrorCtxf ¶
func (Level) WithFields ¶
Click to show internal directories.
Click to hide internal directories.