log4g

package module
v0.0.0-...-8b553bf Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: CC0-1.0 Imports: 5 Imported by: 0

README

Log4G

Go言語用の汎用ログライブラリ

Documentation

Index

Constants

View Source
const (
	PANIC = "PANIC"
	FATAL = "FATAL"
	ERROR = "ERROR"
	WARN  = "WARN"
	INFO  = "INFO"
	DEBUG = "DEBUG"
	TRACE = "TRACE"
)

Variables

This section is empty.

Functions

func GetLogFilePath

func GetLogFilePath() string

ログファイルパスを取得する

func Logger

func Logger(logInfo LogInfo, argsArray []string)

ログ出力処理

func SetLogFilePath

func SetLogFilePath(filePath string)

ログファイルパスを設定する

Types

type LogInfo

type LogInfo struct {
	// contains filtered or unexported fields
}

ログレベルとログメッセージを保持する構造体

func NewLogInfo

func NewLogInfo(level LogLevelEnum, message string) LogInfo

type LogLevelEnum

type LogLevelEnum string

ログレベルを保持するEnum

type Logtb

type Logtb string

ログファイルに実行ログを出力する

Jump to

Keyboard shortcuts

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