logger

package
v0.0.0-...-03fe75f Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This is the system wide log interface.

Functions

func InitLogger

func InitLogger()

InitLogger reads configuration to initialize logging for goabe. The function needs the viper configuration system to be available which also needs the cobra command line parser to be availabel. These two dependencies means this function exists instead of doing this with init(). When this function is run, the configuration will already have been read from whatever file specified by the command line arguments. This tooling runs dual logging streams: one on the stdout for text based logging and the other on the json file. This function will clobber (i.e., overwrite and truncate) any existing contents of the log file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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