feat: significant overhaul of runtime

This commit is contained in:
Lea Anthony
2019-07-20 19:32:30 +10:00
parent d2f114e44e
commit 030e911ea4
58 changed files with 759 additions and 291 deletions

16
runtime/log.go Normal file
View 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)
}