log

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 143

Documentation

Overview

Copyright 2014 mqant Author. All Rights Reserved.

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.

Copyright 2014 mqant Author. All Rights Reserved.

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

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Debug

func Debug(format string, a ...interface{})

func Error

func Error(format string, a ...interface{})

func Info

func Info(format string, a ...interface{})

func Init added in v1.4.13

func Init(debug bool, ProcessID string, Logdir string)

func InitBeego added in v1.6.7

func InitBeego(debug bool, ProcessID string, Logdir string, settings map[string]interface{})

func Log added in v1.6.7

func Log() *log.Logger

func LogBeego

func LogBeego() *logs.BeeLogger

func NewBeegoLogger

func NewBeegoLogger(debug bool, ProcessID string, Logdir string, settings map[string]interface{}) *logs.BeeLogger

func NewDefaultLogger added in v1.6.7

func NewDefaultLogger() *log.Logger

func NewMqantLog added in v1.6.7

func NewMqantLog(debug bool, ProcessID string, Logdir string) *log.Logger

func Warning

func Warning(format string, a ...interface{})

Types

type MqantLog added in v1.6.7

type MqantLog struct {
	*log.Logger
}

func (*MqantLog) GetLogger added in v1.6.7

func (m *MqantLog) GetLogger(debug bool, ProcessID string, Logdir string)

Directories

Path Synopsis
Package logs provide a general log interface Usage: import "github.com/astaxie/beego/logs" log := NewLogger(10000) log.SetLogger("console", "") > the first params stand for how many channel Use it like this: log.Trace("trace") log.Info("info") log.Warn("warning") log.Debug("debug") log.Critical("critical") more docs http://beego.me/docs/module/logs.md
Package logs provide a general log interface Usage: import "github.com/astaxie/beego/logs" log := NewLogger(10000) log.SetLogger("console", "") > the first params stand for how many channel Use it like this: log.Trace("trace") log.Info("info") log.Warn("warning") log.Debug("debug") log.Critical("critical") more docs http://beego.me/docs/module/logs.md
alils
Package alils implements the SDK(v0.5.0) of Simple Log Service(abbr.
Package alils implements the SDK(v0.5.0) of Simple Log Service(abbr.
es

Jump to

Keyboard shortcuts

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