mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 05:11:29 +08:00
17 lines
334 B
Go
17 lines
334 B
Go
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)
|
|
}
|