logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Config *specs.Config
	Logger *zap.Logger
	Aurora aurora.Aurora
}

func GetDefaultLogger

func GetDefaultLogger() *Logger

func NewLogger

func NewLogger(config *specs.Config) *Logger

func (*Logger) Debug

func (l *Logger) Debug(mess ...interface{})

func (*Logger) DebugC

func (l *Logger) DebugC(mess ...interface{})

func (*Logger) Error

func (l *Logger) Error(mess ...interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(mess ...interface{})

func (*Logger) GetAurora

func (l *Logger) GetAurora() aurora.Aurora

func (*Logger) Info

func (l *Logger) Info(mess ...interface{})

func (*Logger) InfoC

func (l *Logger) InfoC(mess ...interface{})

func (*Logger) InitLogger2File

func (l *Logger) InitLogger2File() error

func (*Logger) Msg

func (l *Logger) Msg(level string, withoutColor, ln bool, msg ...interface{})

func (*Logger) SetAsDefault

func (l *Logger) SetAsDefault()

func (*Logger) Warning

func (l *Logger) Warning(mess ...interface{})

Jump to

Keyboard shortcuts

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