logger

package
v0.0.0-...-b86a180 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct{}

Color it take function to change color of printed string

func (*Color) Green

func (c *Color) Green(anymsg ...string) string

func (*Color) Red

func (c *Color) Red(anymsg ...string) string

func (*Color) Yellow

func (c *Color) Yellow(anymsg ...string) string

type Config

type Config struct {
	Directory string
	Filename  string
}

Config for logging

type Console

type Console string

func (Console) Error

func (m Console) Error()

func (Console) Fail

func (m Console) Fail()

func (Console) Info

func (m Console) Info()

func (Console) Start

func (m Console) Start()

func (Console) Success

func (m Console) Success()

func (Console) Test

func (m Console) Test()

func (Console) Warn

func (m Console) Warn()

type Logger

type Logger struct {
	*zerolog.Logger
}

func LabLog

func LabLog(lab string) *Logger

LabLog setup lab log by log name -> /var/log/philo/labs/<labname>.log

func MainLog

func MainLog() *Logger

MainLog main log it will be written to -> /var/log/philo/philo.log

Jump to

Keyboard shortcuts

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