Documentation ¶
Overview ¶
Package log is an alternative package for standard library "log" package for logging in Github action environment. It behaves as expected both in CI mode and in non-CI mode.
import ( - "log" + "github.com/posener/goaction/log" )
Index ¶
- func Debugf(format string, args ...interface{})
- func DebugfFile(p token.Position, format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func ErrorfFile(p token.Position, format string, args ...interface{})
- func Fatal(v ...interface{})
- func FatalFile(p token.Position, v ...interface{})
- func Fatalf(format string, args ...interface{})
- func FatalfFile(p token.Position, format string, args ...interface{})
- func Mask(term string)
- func Printf(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- func WarnfFile(p token.Position, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶ added in v0.0.9
func Debugf(format string, args ...interface{})
Debugf logs a debug level message. To view these logs, set secret ACTIONS_STEP_DEBUG=true at https://github.com/<repo>/settings/secrets/new.
func DebugfFile ¶ added in v0.0.9
DebugfFile logs a debug level message with a file location. To view these logs, set secret variable ACTIONS_STEP_DEBUG=true at https://github.com/<repo>/settings/secrets/new.
func ErrorfFile ¶
ErrorfFile logs an error level message with a file location.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf logs an error level message, and fails the program.
func FatalfFile ¶
FatalfFile logs an error level message with a file location, and fails the program.
Types ¶
This section is empty.