ylog

package
v0.0.0-...-3d9d9e9 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var F [6]*os.File

Functions

func Debug

func Debug(ident string, mesg string)

func Destr

func Destr()

func Error

func Error(ident string, mesg string)

func Info

func Info(ident string, mesg string)

func Warning

func Warning(ident string, mesg string)

func YLog

func YLog(level int, ident string, msg string)

func YLogInit

func YLogInit(YLogConfig YLogType, interfaceName string) error

Types

type YLogOutType

type YLogOutType struct {
	LogType     string `json:"logtype"` // возможные значения - file, syslog, fluent
	LogFile     string `json:"logfile"`
	DebugFile   string `json:"debugfile"`
	InfoFile    string `json:"infofile"`
	WarningFile string `json:"warningfile"`
	ErrorFile   string `json:"errorfile"`
	NoticeFile  string `json:"noticefile"`
	ServerIP    string `json:"server_ip"`
	ServerPort  int    `json:"server_port"`
}

type YLogType

type YLogType struct {
	Debug   string        `json:"debug"`
	YLogOut []YLogOutType `json:"ylogout"`
}

структуры для конфигурационного файла при использовании пакета

Jump to

Keyboard shortcuts

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