constants

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package constants exposes constants used throughout the module

For the full guide visit https://gitlab.com/usvc/modules/go/log

Index

Constants

View Source
const DefaultFluentDHost = "localhost"
View Source
const DefaultFluentDPort = 24224
View Source
const DefaultFluentDTag = "app"
View Source
const DefaultFluentDTimeout = 5 * time.Second
View Source
const DefaultInitializeRetryCount = -1
View Source
const DefaultInitializeRetryInterval = 3 * time.Second
View Source
const FieldData = "@data"

FieldData defines what the data field should be tagged (applies only for JSONFormatter)

View Source
const FieldFile = "@file"

FieldFile defines the key for the value containing the file name and line

View Source
const FieldFunction = "@function"

FieldFunction defines the key for the value containing the function name

View Source
const FieldLevel = "@level"

FieldLevel defines the key for the value containing the level of the log entry

View Source
const FieldMessage = "@message"

FieldMessage defines the key for the value containing the message of the log entry

View Source
const FieldTimestamp = "@timestamp"

FieldTimestamp defines the key for the value containing the timestamp of the log entry

View Source
const TimestampFormat = "2006-01-02T15:04:05"

TimestampFormat defines the format which all logs should be in within the usvc namespace

Variables

DefaultFieldMap sets the FieldMap property of the TextFormatter and JSONFormatter classes that define how logrus outputs logs

DefaultHookLevels can be used to set the levels for which the logrus hook will be activated if you'd like the hook to be activated on all levels of logs

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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