app/internal/log: extract log setup to separate package

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-14 16:37:13 +02:00
parent 10c1b2cb8d
commit b30bf3cef8
6 changed files with 9 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
// SPDX-License-Identifier: Unlicense OR MIT
// Package points standard output, standard error and the standard
// library package log to the platform logger.
package log
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
package app
package log
/*
#cgo LDFLAGS: -llog
@@ -2,7 +2,7 @@
// +build darwin,ios
package app
package log
/*
#include "log_ios.h"
+2
View File
@@ -16,6 +16,8 @@ import (
"gioui.org/io/system"
"gioui.org/op"
"gioui.org/unit"
_ "gioui.org/app/internal/log"
)
// WindowOption configures a Window.