logmngr

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2025 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base() log.Logger

Base returns the base logger

func FormatLoggerInfo added in v0.9.0

func FormatLoggerInfo(format string, args ...interface{})

FormatLoggerInfo that provides a logging function supporting a formatted message. This logger logs to `logger.Info`.

func FormatLoggerWarn added in v0.9.0

func FormatLoggerWarn(format string, args ...interface{})

FormatLoggerWarn that provides a logging function supporting a formatted message. This logger logs to `logger.Warn`.

func HTTP

func HTTP() log.Logger

HTTP returns the HTTP logger

func Start

func Start(debug bool, logDir string, baseOutputs string, htmlOutputs string) error

Start starts logging

Note:

  • This will create new log files in the specified logging directory if logging to a file is desired. The specified logging directory must exist.
  • Valid choices for baseOutputs and htmlOutputs are file and stdout Both can be specified via a comma separated string. ie: file,stdout

func Stop

func Stop()

Stop stops logging

This will close open file handles for the log files and redirects all logging to os.Stderr

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL