Commit graph

4 commits

Author SHA1 Message Date
Piper Pentagram
665717d9e7 Make logging package usage less tedious
Before, we were exposing a Logger as logging.Log. This works, but
results in code calling Logger.Log.Info() which is a little wordy.

Instead, the logger is now kept private and we expose Info, Warn and
Error as public functions that wrap logger.Info, logger.Warn and
logger.Error.
2024-11-08 14:33:57 -08:00
Piper Pentagram
f86efba6bd Rename redundant init function
This change renames logging.InitLogger() to logging.Init().
2024-11-08 14:00:27 -08:00
Piper Pentagram
a82ba0f51b Use a singleton pattern for logging
This change migrates the internal/logging package to a singleton
pattern. It now exports a Log variable which can be acquired from any
other package.
2024-11-08 13:54:19 -08:00
Piper Pentagram
450d425b04 move config & logging packages into internal submodules 2024-11-06 16:01:38 -08:00