log

package
v0.0.0-...-69e45e2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

ログ関係。

Index

Constants

View Source
const (
	TypeConsole = "console"
	TypeFile    = "file"
	TypeFluentd = "fluentd"
)

Variables

View Source
var DisplayLength = 8

Functions

func InitConsole

func InitConsole(root string)

func Mosaic

func Mosaic(str string) string

ログにそのまま書くのが憚られるので隠す。

func Setup

func Setup(root, logType string, logLv level.Level, param interface{}) error

func SetupConsole

func SetupConsole(root string, lv level.Level)

func SetupFile

func SetupFile(root string, lv level.Level, path string, limit int64, num int)

func SetupFluentd

func SetupFluentd(root string, lv level.Level, addr, tag string)

Types

type FileParameter

type FileParameter interface {
	LogFilePath() string
	LogFileLimit() int64
	LogFileNumber() int
}

type FluentdParameter

type FluentdParameter interface {
	LogFluentdAddress() string
	LogFluentdTag() string
}

Jump to

Keyboard shortcuts

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