log

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 5

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

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

func DebugfFile(p token.Position, format string, args ...interface{})

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 Errorf

func Errorf(format string, args ...interface{})

Errorf logs an error level message.

func ErrorfFile

func ErrorfFile(p token.Position, format string, args ...interface{})

ErrorfFile logs an error level message with a file location.

func Fatal

func Fatal(v ...interface{})

Fatal logs an error level message, and fails the program.

func FatalFile

func FatalFile(p token.Position, v ...interface{})

FatalFile logs an error level message with a file location, and fails the program.

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf logs an error level message, and fails the program.

func FatalfFile

func FatalfFile(p token.Position, format string, args ...interface{})

FatalfFile logs an error level message with a file location, and fails the program.

func Mask

func Mask(term string)

Mask a term in the logs (will appear as '*' instead.)

func Printf

func Printf(format string, args ...interface{})

Printf logs an info level message.

func Warnf

func Warnf(format string, args ...interface{})

Warnf logs a warning level message.

func WarnfFile

func WarnfFile(p token.Position, format string, args ...interface{})

WarnfFile logs a warning level message with a file location.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL