-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.go
More file actions
81 lines (65 loc) · 2.09 KB
/
Copy pathfunctions.go
File metadata and controls
81 lines (65 loc) · 2.09 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package syslog
// Writes syslog message with log level EMERG
func Emerg(msg string) {
Syslog(LOG_EMERG, msg)
}
// Formats according to a format specifier and writes to syslog with log level EMERG
func Emergf(format string, a ...interface{}) {
Syslogf(LOG_EMERG, format, a...)
}
// Writes syslog message with log level ALERT
func Alert(msg string) {
Syslog(LOG_ALERT, msg)
}
// Formats according to a format specifier and writes to syslog with log level ALERT
func Alertf(format string, a ...interface{}) {
Syslogf(LOG_ALERT, format, a...)
}
// Writes syslog message with log level CRIT
func Crit(msg string) {
Syslog(LOG_CRIT, msg)
}
// Formats according to a format specifier and writes to syslog with log level CRIT
func Critf(format string, a ...interface{}) {
Syslogf(LOG_CRIT, format, a...)
}
// Writes syslog message with log level ERR
func Err(msg string) {
Syslog(LOG_ERR, msg)
}
// Formats according to a format specifier and writes to syslog with log level ERR
func Errf(format string, a ...interface{}) {
Syslogf(LOG_ERR, format, a...)
}
// Writes syslog message with log level WARNING
func Warning(msg string) {
Syslog(LOG_WARNING, msg)
}
// Formats according to a format specifier and writes to syslog with log level WARNING
func Warningf(format string, a ...interface{}) {
Syslogf(LOG_WARNING, format, a...)
}
// Writes syslog message with log level NOTICE
func Notice(msg string) {
Syslog(LOG_NOTICE, msg)
}
// Formats according to a format specifier and writes to syslog with log level NOTICE
func Noticef(format string, a ...interface{}) {
Syslogf(LOG_NOTICE, format, a...)
}
// Writes syslog message with log level INFO
func Info(msg string) {
Syslog(LOG_INFO, msg)
}
// Formats according to a format specifier and writes to syslog with log level INFO
func Infof(format string, a ...interface{}) {
Syslogf(LOG_INFO, format, a...)
}
// Writes syslog message with log level DEBUG
func Debug(msg string) {
Syslog(LOG_DEBUG, msg)
}
// Formats according to a format specifier and writes to syslog with log level DEBUG
func Debugf(format string, a ...interface{}) {
Syslogf(LOG_DEBUG, format, a...)
}