☰
Debian Codegraph
@
0.0.6+dfsg-2
/
/
api
/
v1
/
lib
/
debug
/
logger.go
☽
☼
api/v1/lib/debug/logger.go
code
plain
raw
symbols
SCIP
Apache-2.0
2013-2019 Mesosphere, Inc.; 2013 The Camlistore Authors
debian/copyright
1
package
debug
2
3
import
"log"
4
5
type
Logger
bool
6
7
func
(d
Logger
)
Log
(v ...
interface
{}) {
8
if
d {
9
log.
Print
(v...)
10
}
11
}
12
13
func
(d
Logger
)
Logf
(s
string
, v ...
interface
{}) {
14
if
d {
15
log.
Printf
(s, v...)
16
}
17
}