forked from fynelabs/selfupdate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log.go
31 lines (25 loc) · 815 Bytes
/
log.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package selfupdate
// LogError will be called to log any reason that have prevented an executable update
var LogError func(string, ...interface{})
// LogInfo will be called to log any reason that prevented an executable update due to a "user" decision via one of the callback
var LogInfo func(string, ...interface{})
// LogDebug will be called to log any reason that prevented an executable update, because there wasn't any available detected
var LogDebug func(string, ...interface{})
func logError(format string, p ...interface{}) {
if LogError == nil {
return
}
LogError(format, p...)
}
func logInfo(format string, p ...interface{}) {
if LogInfo == nil {
return
}
LogInfo(format, p...)
}
func logDebug(format string, p ...interface{}) {
if LogDebug == nil {
return
}
LogDebug(format, p...)
}