Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Location *SeekInfo // if nil it will consumer log from cur time DateTimeLogLayout *DateTimeLayout Logger mylog.Logger }
type Consumer ¶
func NewConsumer ¶
type DateTimeLayout ¶
type DateTimeLayout struct { FilePath string // e.g. /path/to/20230815.log Layout string // e.g. 20060102.log }
func (*DateTimeLayout) FormatFile ¶
func (dt *DateTimeLayout) FormatFile(t time.Time) string
Click to show internal directories.
Click to hide internal directories.