aboutsummaryrefslogtreecommitdiff
path: root/option.go
diff options
context:
space:
mode:
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
commitf98e43234a3b7a9823ac9b9e68c7c595c10ebe7d (patch)
tree2e1e5dac6c3a3ae4465baeb9179d0718c5cd8b28 /option.go
parent2100500f1a0a8534a5d6f900b4e35ad9a09aa339 (diff)
start refactor
Diffstat (limited to 'option.go')
-rw-r--r--option.go15
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)
+}