package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev
# Functions
CEFFormatter returns a default CEFTextFormatter with specific settings.
CreateCryptoFormatter creates formatter object.
CreateFormatter creates formatter object.
GetLoggerFromContext gets logger from context, returns nil if no logger.
GetLoggerFromContextOk gets logger from context, returns logger and success code.
GetLogLevel gets logrus log level and returns int Acra log level.
IsDebugLevel return true if logger configured to log debug messages.
JSONFormatter returns a default logrus.JSONFormatter with specific settings.
LoggerWithTrace return logger with added span_id/trace_id fields from context.
NewAuditLogHandler creates new handler.
NewCefFormatterHook create new hook with cef formatter support to provide audit_log.
NewCryptoFormatter creates new crypto formatter.
NewHooks creates a set of formatter hooks with single "crypto" hook used by audit log functionality.
NewIntegrityCheckVerifier return new IntegrityCheckVerifier with configure secret key and parser.
NewJSONFormatterHook create new hook with json formatter support to provide audit_log.
NewLogEntryIntegrityCalculator return new LogEntryIntegrityCalculator with configured secret key.
NewLoggerWithTrace return logger with trace_id/span_id fields.
NewLogParser return LogParser according to format.
NewPlaintextFormatterHook create new hook with plaintext formatter support to provide audit_log.
NewWriter creates writer that outputs logs into stdout and also into file if necessary.
ReadLogEntries sequentially reads log entries from provided file list and pushes them into a channel.
SetLoggerToContext sets logger to corresponded context.
SetLogLevel sets logging level.
SetTraceStatus to context.
TextFormatter returns a default logrus.TextFormatter with specific settings.
TimeToString return string representation of timestamp with milliseconds.
# Constants
Set of constants used internally by logging package.
Log formats.
Set of constants used internally by logging package.
Set of constants used internally by logging package.
Set of constants used internally by logging package.
Set of constants used internally by logging package.
Set of constants used internally by logging package.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
database.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
system events.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
decryptor.
keys.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
transport / networks.
processes.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
acracensor.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
encoding/decoding.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
used as general error.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
encryptor.
Event codes for different events in Acra services, splitted by groups and service.
500 .
connection processing on acra-server side.
Event codes for different events in Acra services, splitted by groups and service.
http api.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
network additional.
metrics.
mysql processing.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
response connector.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
tracing.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
AcraTranslator.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
Event codes for different events in Acra services, splitted by groups and service.
100 .
Event codes for different events in Acra services, splitted by groups and service.
Default key names for the default fields.
Default key names for the default fields.
Default key names for the default fields.
Default key names for the default fields.
Default key names for the default fields.
Default key names for the default fields.
Set of constants used internally by logging package.
Log formats.
Set of constants used internally by logging package.
Log modes.
Log modes.
Log modes.
Set of constants used internally by logging package.
Set of constants used internally by logging package.
Log formats.
Set of constants used internally by logging package.
# Variables
Set of error values related to enterprise logging.
Set of error values related to enterprise logging.
Set of error values related to enterprise logging.
ErrMissingCryptoHook is an error that occurs if hook with crypto abilities is not found in a set of formatter's hooks.
Set of error values related to enterprise logging.
Set of error values related to enterprise logging.
Set of error values related to enterprise logging.
Constants showing extra filed added to loggers by default.
# Structs
AcraCEFFormatter is based on CEFTextFormatter with extra logrus fields.
AcraCryptoFormatter is an implementation of formatter with crypto hook.
AcraJSONFormatter represents a format with specific fields.
AcraTextFormatter provides log formatting as plaintext.
AuditLogHandler is a coordinator of both formatter and writer objects.
CefFormatterHook struct to provide audit_log with cef formatter.
CefLogParser struct used as LogParser implementation for cef format.
CEFTextFormatter formats logs into text.
IntegrityCheckVerifier implement audit log verification.
JSONFormatterHook struct to provide audit_log with json formatter.
JSONLogParser struct used as LogParser implementation for json format.
LogEntryInfo consists from raw log entry and metadata.
LogEntryIntegrityCalculator implements audit log with hash generation with configured secret key.
LogEntrySource is a stream of log entries for verification.
LogSpanExporter exporter for opencensus that print all spans with logger.
ParsedLogEntry struct store log data and related integrity metadata.
PlaintextFormatterHook struct to provide audit_log with plaintext formatter.
PlaintextLogParser struct used as LogParser implementation for plaintext format.
# Interfaces
AuditLogKeySetter is an auxiliary interface used for decorating formatter's hook.
CryptoFormatter is an auxiliary interface that decorates usual formatter's hook with crypto key setter.
Formatter wraps log.Formatter interface and adds functions for customizations.
FormatterHook provides post-processing customization to log formatters, allowing you to execute additional code before or after an entry is completed.
LoggerSetter abstract types that provide way to set logger which they should use.
LogParser is a common interface for parsers that are used for processing raw log entries that are passed as strings.