Documentation
¶
Index ¶
- Constants
- Variables
- func JoinStrings(values []any) string
- type Helpers
- func (h *Helpers) GetDateTime() string
- func (h *Helpers) GetEnvironment() *string
- func (h *Helpers) GetHeaders(scope string, context *LevelContext) string
- func (h *Helpers) GetPid() string
- func (h *Helpers) SetTimeZone(location string)
- func (h *Helpers) SetWrite(scope string, context *LevelContext, value []any)
- type LevelContext
- type Levels
- type Logger
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
Types ¶
type Helpers ¶
type Helpers struct{}
func (*Helpers) GetDateTime ¶
func (*Helpers) GetEnvironment ¶
func (*Helpers) GetHeaders ¶
func (h *Helpers) GetHeaders(scope string, context *LevelContext) string
func (*Helpers) SetTimeZone ¶ added in v1.2.0
type LevelContext ¶
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 (*Logger) SetTimeZone ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.