package
0.0.0-20200513085925-1d97044de574
Repository: https://github.com/ver13/ava.git
Documentation: pkg.go.dev
# Functions
CallerName returns the name of the calling function using the runtime package.
Color colorizes the input string and returns it with ANSI color codes.
No description provided by the author
NewFormatter creates a new customFormatter, sets the template string, and returns its pointer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WindowsEnableNativeANSI will attempt to set ENABLE_VIRTUAL_TERMINAL_PROCESSING on a console using SetConsoleMode.
WindowsNativeANSI returns true if either the stderr or stdout consoles natively support ANSI color codes.
# Constants
No description provided by the author
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
ANSI color codes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
defaultTimestampFormat is the default format used if the user does not specify their own.
Detailed template logs padded columns including the running PID.
message template just logs the message.
CommonLogFileFormatTemplate : {host} {user-identifier} {auth-user-id} [{datetime}] "{method} {request} HTTP/1.0" {response-code} {bytes}.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
defaultTimestampFormat is the default format used if the user does not specify their own.
Detailed template logs padded columns including the running PID.
RFC3164LogTemplate : <priority>{timestamp} {hostname} {application}[{pid}]: {message}.
message template just logs the message.
defaultTimestampFormat is the default format used if the user does not specify their own.
Detailed template logs padded columns including the running PID.
RFC5424LogTemplate : <priority>{version} {iso-timestamp} {hostname} {application} {pid} {message-id} {structured-data} {message}.
message template just logs the message.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
defaultTimestampFormat is the default format used if the user does not specify their own.
Detailed template logs padded columns including the running PID.
Basic template just logs the level name, name field, message and fields.
message template just logs the message.
defaultTimestampFormat is the default format used if the user does not specify their own.
Detailed template logs padded columns including the running PID.
Basic template just logs the level name, name field, message and fields.
message template just logs the message.
defaultTimestampFormat is the default format used if the user does not specify their own.
Detailed template logs padded columns including the running PID.
ApacheErrorFormatTemplate : [{timestamp}] [{module}:{severity}] [pid {pid}:tid {threadID}] [client: %{client}] %{message}.
message template just logs the message.
Detailed template logs padded columns including the running PID.
defaultTimestampFormat is the default format used if the user does not specify their own.
Text log template just logs the level name, name field, message and fields.
message template just logs the message.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
CustomHandlers is a mapping of handler-type functions to attributes as key names (e.g.