diff options
| author | Kujtim Hoxha <[email protected]> | 2025-03-21 18:20:28 +0100 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-03-21 18:20:28 +0100 |
| commit | 4b0ea68d7af9a6031a7ffda7ad66e0cb83315750 (patch) | |
| tree | 8220c1bf6f107ea76dd78c7f57b77000c0c98a22 /internal/logging/default.go | |
| download | opencode-4b0ea68d7af9a6031a7ffda7ad66e0cb83315750.tar.gz opencode-4b0ea68d7af9a6031a7ffda7ad66e0cb83315750.zip | |
initial
Diffstat (limited to 'internal/logging/default.go')
| -rw-r--r-- | internal/logging/default.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/logging/default.go b/internal/logging/default.go new file mode 100644 index 000000000..54cfaa490 --- /dev/null +++ b/internal/logging/default.go @@ -0,0 +1,12 @@ +package logging + +var defaultLogger Interface + +func Get() Interface { + if defaultLogger == nil { + defaultLogger = NewLogger(Options{ + Level: "info", + }) + } + return defaultLogger +} |
