package
0.0.0-20160920194302-ad86efcaa21b
Repository: https://github.com/a10y/cockroach.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
DirSet returns true of the log directory has been changed from its default.
DisableLogFileOutput turns off logging.
EnableLogFileOutput turns on logging using the specified directory.
ErrEvent looks for an opentracing.Trace in the context and logs the given message to it.
ErrEventf looks for an opentracing.Trace in the context and formats and logs the given message to it.
Error logs to the ERROR, WARNING, and INFO logs.
Errorf logs to the ERROR, WARNING, and INFO logs.
ErrorfDepth logs to the ERROR, WARNING, and INFO logs, offsetting the caller's stack frame by 'depth'.
Event looks for an opentracing.Trace in the context and logs the given message to it.
Eventf looks for an opentracing.Trace in the context and formats and logs the given message to it.
Fatal logs to the INFO, WARNING, ERROR, and FATAL logs, including a stack trace of all running goroutines, then calls os.Exit(255).
Fatalf logs to the INFO, WARNING, ERROR, and FATAL logs, including a stack trace of all running goroutines, then calls os.Exit(255).
FatalfDepth logs to the INFO, WARNING, ERROR, and FATAL logs (offsetting the caller's stack frame by 'depth'), including a stack trace of all running goroutines, then calls os.Exit(255).
FatalOnPanic recovers from a panic and exits the process with a Fatal log.
FetchEntriesFromFiles fetches all available log entries on disk that match the log 'severity' (or worse) and are between the 'startTimestamp' and 'endTimestamp'.
FinishEventLog closes the event log in the context (see WithEventLog).
Flush flushes all pending log I/O.
GetLogReader returns a reader for the specified filename.
Info logs to the INFO log.
Infof logs to the INFO log.
InfofDepth logs to the INFO log, offsetting the caller's stack frame by 'depth'.
ListLogFiles returns a slice of FileInfo structs for each log file on the local node, in any of the configured log directories.
NewEntryDecoder creates a new instance of EntryDecoder.
NewStdLogger creates a *stdLog.Logger that forwards messages to the Google logs for the specified severity.
SetExitFunc allows setting a function that will be called to exit the process when a Fatal message is generated.
SeverityByName attempts to parse the passed in string into a severity.
V returns true if the logging verbosity is set to the specified level or higher.
VDepth reports whether verbosity at the call site is at least the requested level.
VEvent either logs a message to the log files (which also outputs to the active trace or event log) or to the trace/event log alone, depending on whether the specified verbosity level is active.
VEventf either logs a message to the log files (which also outputs to the active trace or event log) or to the trace/event log alone, depending on whether the specified verbosity level is active.
Warning logs to the WARNING and INFO logs.
Warningf logs to the WARNING and INFO logs.
WarningfDepth logs to the WARNING and INFO logs, offsetting the caller's stack frame by 'depth'.
WithEventLog creates and embeds a trace.EventLog in the context, causing future logging and event calls to go to the EventLog.
WithLogTag returns a context (derived from the given context) which when used with a logging function results in the given name and value being printed in the message.
WithLogTagInt is a variant of WithLogTag that avoids the allocation associated with boxing the value in an interface{}.
WithLogTagInt64 is a variant of WithLogTag that avoids the allocation associated with boxing the value in an interface{}.
WithLogTagsFromCtx returns a context based on ctx with fromCtx's log tags added on.
WithLogTagStr is a variant of WithLogTag that avoids the allocation associated with boxing the value in an interface{}.
WithNoEventLog creates a context which no longer has an embedded event log.
# Constants
DynamicIntValueUnknown can be used with Set; it makes the value "?".
No description provided by the author
No description provided by the author
No description provided by the author
NONE is the end sentinel.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
MaxSize is the maximum size of a log file in bytes.
No description provided by the author
No description provided by the author
Stats tracks the number of lines of output and number of bytes per severity level.
# Structs
DynamicIntValue is a helper type that allows using a "dynamic" int32 value for a log tag.
Entry represents a cockroach structured log entry.
EntryDecoder reads successive encoded log entries from the input buffer.
A FileDetails holds all of the particulars that can be parsed by the name of a log file.
No description provided by the author
# Type aliases
No description provided by the author