mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-04 08:24:59 +01:00
initial
This commit is contained in:
12
internal/logging/default.go
Normal file
12
internal/logging/default.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package logging
|
||||
|
||||
var defaultLogger Interface
|
||||
|
||||
func Get() Interface {
|
||||
if defaultLogger == nil {
|
||||
defaultLogger = NewLogger(Options{
|
||||
Level: "info",
|
||||
})
|
||||
}
|
||||
return defaultLogger
|
||||
}
|
||||
Reference in New Issue
Block a user