mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 04:05:12 -07:00
feat: significant overhaul of runtime
This commit is contained in:
16
runtime/log.go
Normal file
16
runtime/log.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package runtime
|
||||
|
||||
import "github.com/wailsapp/wails/lib/logger"
|
||||
|
||||
// Log exposes the logging interface to the runtime
|
||||
type Log struct{}
|
||||
|
||||
// NewLog creates a new Log struct
|
||||
func NewLog() *Log {
|
||||
return &Log{}
|
||||
}
|
||||
|
||||
// New creates a new logger
|
||||
func (r *Log) New(prefix string) *logger.CustomLogger {
|
||||
return logger.NewCustomLogger(prefix)
|
||||
}
|
||||
Reference in New Issue
Block a user