logger

package
v0.0.0-...-ce87471 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2024 Aleksei Grigorev https://aleksvgrig.com, https://github.com/AlekseiGrigorev, aleksvgrig@gmail.com. Package define interfaces, structures and functions for working with logs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	PrefixDelimiter string // Prefix delimiter
	PrintToStdout   bool   // Print to stdout flag
	// contains filtered or unexported fields
}

Define log instance

func (*Log) Debug

func (log *Log) Debug(params ...any) *Log

Print debug message

func (*Log) Error

func (log *Log) Error(params ...any) *Log

Print error message

func (*Log) Info

func (log *Log) Info(params ...any) *Log

Print info message

func (*Log) Log

func (l *Log) Log() *log.Logger

Returns Log instance

Jump to

Keyboard shortcuts

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