Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCloudLogger ¶
AddCloudLogger adds stackdriver logging to the logger in the given project and log name.
func CreateLogger ¶
func CreateLogger() error
CreateLogger initializes the logger for the server. The logs will be written to a local file called logs.txt.
Types ¶
type CloudLogger ¶
CloudLogger handles writing logs to stackdriver.
type Logger ¶
type Logger struct { *log.Logger *CloudLogger // contains filtered or unexported fields }
Logger handles writing local logs to a file and cloud logs to Stackdriver.
Click to show internal directories.
Click to hide internal directories.