logger

package
v0.0.0-...-8019898 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

*****************************************************************************

  • Copyright (c) KylinSoft Co., Ltd.2021-2022. All rights reserved.
  • PilotGo is licensed under the Mulan PSL v2.
  • You can use this software accodring to the terms and conditions of the Mulan PSL v2.
  • You may obtain a copy of Mulan PSL v2 at:
  • http://license.coscl.org.cn/MulanPSL2
  • THIS SOFTWARE IS PROVIDED ON AN 'AS IS' BASIS, WITHOUT WARRANTIES OF ANY KIND,
  • EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  • See the Mulan PSL v2 for more details.
  • Author: yangzhao1
  • Date: 2022-03-01 09:59:30
  • LastEditTime: 2022-04-05 11:37:16
  • Description: provide agent log manager of pilotgo *****************************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func Fatal

func Fatal(format string, args ...interface{})

func Info

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

func Init

func Init(conf *LogOpts) error

func LoggerDebug

func LoggerDebug() gin.HandlerFunc

func Trace

func Trace(format string, args ...interface{})

func Warn

func Warn(format string, args ...interface{})

Types

type LogOpts

type LogOpts struct {
	Level   string `yaml:"level"`
	Driver  string `yaml:"driver"`
	Path    string `yaml:"path"`
	MaxFile int    `yaml:"max_file"`
	MaxSize int    `yaml:"max_size"`
}

Jump to

Keyboard shortcuts

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