Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Log *slog.Logger
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.