Version: v0.5.0 Latest Latest

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

Go to latest
Published: Dec 20, 2020 License: MIT Imports: 2 Imported by: 0




This section is empty.


View Source
var Now = time.Now

Now is set to wrap time.Now() by default


func DateTime

func DateTime(format, prev string) (next string, err error)

DateTime will set the name of the file to the current date/time. NOTE: We're using microseconds here to make sure that file names don't conflict if they're generated too quickly.

func Increment

func Increment(format, prev string) (next string, err error)

Increment will increase the number in the file name by 1 on each file rotation.

func Noop

func Noop(format, prev string) (next string, err error)

Noop (no operation) returns the raw format string passed to it. NOTE: The noop sequencer will always return the same file name and will therefore overwrite your log files each time they are rotated.


This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL