logger

package
v0.0.0-...-c1f4788 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(dir string, namespace, serviceName, serviceId string)

Initialize do some initial work for log. Info logger will write to <dir>/<namespace>-<service_name>-<service_id>-info.log Error logger will write to <dir>/<namespace>-<service_name>-<service_id>-error.log Each log file size is limited to 1GB, and maximum days of old log to retained in day, the default is 14 days(2 week), currently both file size and max ages not support change by user.

func ServeLevel

func ServeLevel(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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