Commit graph

8 commits

Author SHA1 Message Date
17a1cf1ade Add AddFormatter function to allow custom builds to register new formatters 2026-03-09 16:11:53 -05:00
cfeab035d3 ⚙️ Move preferred formatter to its own config field 2026-03-09 13:46:02 -05:00
9f05f933dd ♲ Refactor configuration to use viper with context propagation
- Replace global ConfigPath and Overrides with viper-based configuration
- Add viper.New() to create configurable viper instances
- Store viper and unmarshaled Config struct in context for testability
- Add RetrieveFromContext and AddToContext helper functions
- Update files.Append to accept context and retrieve config from it
- Update formatters.Preferred and formatters.New to accept context
- Add PersistentPreRunE in CLI to create and configure viper instance
- Support -c flag for custom config file path
- Support -v flag for config value overrides
- Update all test files to create viper and add to context
- Remove unused config types and load functions
- Add viper as dependency with automatic env var support (MYLOG_*)
2026-03-09 13:46:01 -05:00
1110288d84 Migrate from testify to nalgeon/be testing library
- Replace all testify/assert and testify/require with be library
- Update go.mod to use be v0.3.0 instead of testify
- Simplify test assertions using be.Equal, be.Err, and be.True
- Refactor append_test, entry_test, meta_test, log_test, and formatter tests
2026-02-13 16:02:38 -06:00
632c7143f1 Add null formatter 2024-03-11 21:18:52 -05:00
4c0edcd1a5 Add JSON formatter 2024-03-10 20:31:49 -05:00
febbce8a6b Add formatters.Preferred 2024-03-09 16:07:58 -06:00
89e6c2b3bd Add plain text formatter 2024-03-07 10:10:54 -06:00