package
0.0.0-20221215221243-b79a0d8da330
Repository: https://github.com/purecloudlabs/gprovision.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package lcd is a StackableLog that logs events to cfa.DefaultLcd, as long as those events have the EndUserFlag set.
Package testlog hijacks the output of github.com/purecloudlabs/gprovision/pkg/log, and can hijack log.Cmd().

# Functions

AdaptStdlog redirects output from the system pkg "log" to this logger.
Adds a consoleLog to the stack.
AddFileLog adds a fileLog to the stack.
Add a logger to the stack.
Adds a memLog to the stack; note that this is unlikely to need called as a memLog is the default.
AddNamedFileLog adds a fileLog to the stack like AddFileLog, but uses the specified name rather than coming up with one.
Remove all attrs from the map.
Default impl of Cmd(); runs a command, capturing output, logging in the event of failure.
No description provided by the author
Restores the log stack to initial state.
If the log stack includes a MemLog, this writes all of its content to stderr.
Like Msgf or Logf, but does not return - process will be terminated.
Flushes data, closes files/connections, etc.
Return StackableLogger matching id, or nil.
Backend of Logf(), Msgf(), Fatalf(), etc.
Remove a MemLog from the stack.
Verifies that the new logger is not a duplicate of another in the stack.
Get an attribute of the current log stack.
Gets the log prefix.
Return true if a log in the stack matches given id.
See Logf.
Logf is for use with more technical, or more trivial, messages.
No description provided by the author
See Logf.
See Msgf.
Msgf is for use with messages suitable for display to the user.
See Msgf.
Calls Finalize on existing logger(s), then sets newLog as the topmost logger.
Remove a log with the given id from the stack.
Set an attribute of the current log stack.
Sets up action to take when fatal event has been logged; see FailAction.
Sets the log prefix, which is used in the file name and other places.
Retrieve all entries logged so far.
Returns a string containing a timestamp like TimestampLayout.
used by testlog to remove logging calls from testing stack traces.

# Constants

No description provided by the author
Format: yyyymmdd_hhmm.
No description provided by the author
No description provided by the author

# Variables

Wrapper for exec.Command(...).CombinedOutput().
Default fatal action is to call os.Exit(1).
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Actions to take when log.Fatalf() is called.
LogEntry is the primary record type for StackableLogger.

# Interfaces

A type of logger which can be chained/stacked, each adding different functionalities.

# Type aliases

No description provided by the author
Type of function called after fatal event has been logged.
No description provided by the author