package
2.4.88+incompatible
Repository: https://github.com/getlantern/flashlight.git
Documentation: pkg.go.dev
# Functions
Close stops logging.
EnableFileLogging configures golog to write to rotated files under the logdir for the given appName, in addition to standard outputs.
EnableFileLoggingWith is similar to EnableFileLogging but allows overriding standard outputs and setting buffer depths for error and debug log channels.
NonStopWriteCloser creates a WriteCloser that duplicates its writes to all the provided WriteClosers, even if errors encountered while writing.
RegisterUserAgent tries to find the User-Agent in the HTTP request and keep track of the applications using Lantern during this session.
RotatedLogsUnder creates rotated file logger under logdir using the given appName.
Timestamped writes the current time and the duration since process start to the writer, used by golog.SetPrepender().
ZipLogFiles zips the Lantern log files to the writer.
ZipLogFilesFrom zips the log files from the given dirs to the writer.
# Structs
FlashlightLogger is a logger that uses golog.Logger to log messages.