logger

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright © 2021 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 MacaroniCtlLogger

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

func GetDefaultLogger

func GetDefaultLogger() *MacaroniCtlLogger

func NewMacaroniCtlLogger

func NewMacaroniCtlLogger(config *specs.MacaroniCtlConfig) *MacaroniCtlLogger

func (*MacaroniCtlLogger) Debug

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

func (*MacaroniCtlLogger) DebugC

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

func (*MacaroniCtlLogger) Error

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

func (*MacaroniCtlLogger) Fatal

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

func (*MacaroniCtlLogger) GetAurora

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

func (*MacaroniCtlLogger) Info

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

func (*MacaroniCtlLogger) InfoC

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

func (*MacaroniCtlLogger) InitLogger2File

func (l *MacaroniCtlLogger) InitLogger2File() error

func (*MacaroniCtlLogger) Msg

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

func (*MacaroniCtlLogger) SetAsDefault

func (l *MacaroniCtlLogger) SetAsDefault()

func (*MacaroniCtlLogger) Warning

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

Jump to

Keyboard shortcuts

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