logger

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

hitl-go-logger

Documentation

Index

Constants

View Source
const FORMAT_HHMMSS12h = "15:04:05 PM"

Variables

View Source
var DEFAULT_TIME_ZONE = "America/Sao_Paulo"

Functions

func JoinStrings added in v1.1.0

func JoinStrings(values []any) string

Types

type Helpers

type Helpers struct{}

func (*Helpers) GetDateTime

func (h *Helpers) GetDateTime() string

func (*Helpers) GetEnvironment

func (h *Helpers) GetEnvironment() *string

func (*Helpers) GetHeaders

func (h *Helpers) GetHeaders(scope string, context *LevelContext) string

func (*Helpers) GetPid

func (h *Helpers) GetPid() string

func (*Helpers) SetTimeZone added in v1.2.0

func (h *Helpers) SetTimeZone(location string)

func (*Helpers) SetWrite

func (h *Helpers) SetWrite(
	scope string,
	context *LevelContext,
	value []any,
)

type LevelContext

type LevelContext struct {
	Name  string
	Color string
}

type Levels added in v1.1.1

type Levels struct{}

func (*Levels) Debug added in v1.1.1

func (l *Levels) Debug() *LevelContext

func (*Levels) Error added in v1.1.1

func (l *Levels) Error() *LevelContext

func (*Levels) Info added in v1.1.1

func (l *Levels) Info() *LevelContext

func (*Levels) Success added in v1.1.1

func (l *Levels) Success() *LevelContext

func (*Levels) Warn added in v1.1.1

func (l *Levels) Warn() *LevelContext

type Logger added in v1.1.1

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(scope string) *Logger

func (*Logger) Debug added in v1.1.1

func (l *Logger) Debug(value ...any)

func (*Logger) Error added in v1.1.1

func (l *Logger) Error(value ...any)

func (*Logger) Info added in v1.1.1

func (l *Logger) Info(value ...any)

func (*Logger) SetTimeZone added in v1.2.0

func (l *Logger) SetTimeZone(location string)

func (*Logger) Success added in v1.1.1

func (l *Logger) Success(value ...any)

func (*Logger) Warn added in v1.1.1

func (l *Logger) Warn(value ...any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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