Documentation
¶
Overview ¶
Package logger is the way we do logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { *log.Logger *errorreporting.Client }
Log is a wrapper on the stdlib log pkg which includes the Stackdriver Error Reporting client.
func NewWithReporting ¶
func NewWithReporting(prefix string, gcpReporting *errorreporting.Client) *Log
New returns an initialized Log with defaults setup.
func (*Log) FatalIfErr ¶
FatalIfErr panics if the error value is not nil.
Click to show internal directories.
Click to hide internal directories.