Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F13777048
logging.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
828 B
Subscribers
None
logging.go
View Options
package
log
import
(
"fmt"
"os"
cli
"gopkg.in/urfave/cli.v1"
)
// Info logs general diagnostic messages, shown only when the -v or --verbose
// flag is provided.
func
Info
(
c
*
cli
.
Context
,
s
string
,
p
...
interface
{})
{
if
c
.
Bool
(
"v"
)
||
c
.
Bool
(
"verbose"
)
||
c
.
GlobalBool
(
"v"
)
||
c
.
GlobalBool
(
"verbose"
)
{
fmt
.
Fprintf
(
os
.
Stderr
,
s
+
"\n"
,
p
...
)
}
}
// InfolnQuit logs the message to stderr and exits normally (without an error).
func
InfolnQuit
(
s
string
,
p
...
interface
{})
{
fmt
.
Fprintf
(
os
.
Stderr
,
s
+
"\n"
,
p
...
)
os
.
Exit
(
0
)
}
// Errorln logs the message to stderr
func
Errorln
(
s
string
,
p
...
interface
{})
{
fmt
.
Fprintf
(
os
.
Stderr
,
s
+
"\n"
,
p
...
)
}
// ErrorlnQuit logs the message to stderr and exits with an error code.
func
ErrorlnQuit
(
s
string
,
p
...
interface
{})
{
fmt
.
Fprintf
(
os
.
Stderr
,
s
+
"\n"
,
p
...
)
os
.
Exit
(
1
)
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 28, 8:53 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3607243
Attached To
rWCLI writeas-cli
Event Timeline
Log In to Comment