logging

package
v0.0.0-...-34c8659 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Overview

Copyright (C) 2022-2023  ikafly144

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, args ...any)

デバッグレベルのログを出力

fmt.Printfに沿ったフォーマットを使用する

func Error

func Error(format string, args ...any)

エラーレベルのログを出力

fmt.Printfに沿ったフォーマットを使用する

func Fatal

func Fatal(format string, args ...any)

エラーレベルのログを出力してプロセスを異常終了

fmt.Printfに沿ったフォーマットを使用する

func Info

func Info(format string, args ...any)

インフォレベルのログを出力

fmt.Printfに沿ったフォーマットを使用する

func Logger

func Logger() func(msgL, caller int, format string, a ...any)

ログ関数を返す

func SetLogLevel

func SetLogLevel() zapcore.Level

ログレベルを環境変数から取得

func Warning

func Warning(format string, args ...any)

ワーニングレベルのログを出力

fmt.Printfに沿ったフォーマットを使用する

Types

This section is empty.

Jump to

Keyboard shortcuts

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