diff options
author | Özgür Kesim <oec@kesim.org> | 2024-11-10 11:53:19 +0100 |
---|---|---|
committer | Özgür Kesim <oec@kesim.org> | 2024-11-10 11:53:19 +0100 |
commit | f98e43234a3b7a9823ac9b9e68c7c595c10ebe7d (patch) | |
tree | 2e1e5dac6c3a3ae4465baeb9179d0718c5cd8b28 /option.go | |
parent | 2100500f1a0a8534a5d6f900b4e35ad9a09aa339 (diff) |
start refactor
Diffstat (limited to 'option.go')
-rw-r--r-- | option.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/option.go b/option.go new file mode 100644 index 0000000..8f7212f --- /dev/null +++ b/option.go @@ -0,0 +1,15 @@ +package seal + +import "log/slog" + +type Option func(auction *auction) + +func OptionSetLoggerLevel(level slog.Level) Option { + return func(_ *auction) { + slog.SetLogLoggerLevel(level) + } +} + +func OptionDebug() Option { + return OptionSetLoggerLevel(slog.LevelDebug) +} |