package
0.5.11
Repository: https://github.com/gol4ng/logger.git
Documentation: pkg.go.dev

# Functions

Chan will send Entry into a given go channel.
Gelf will send Entry into gelf writer(depending on network, address).
GelfFromConnection will send Entry into gelf writer(depending on GelfFromConnection).
GelfTCP will send Entry into TCP gelf writer(depending on network, address) use GelfTCPFromConnection func if you want to handle the connection error and Closure.
GelfTCPFromConnection will return GelfTCP socket with the current TCPConn.
GelfUDP will send Entry into UDP gelf writer(depending on network, address) use GelfUDPFromConnection func if you want to handle the connection error and Closure CAUTION: Logstash only supports Gzip compression https://github.com/elastic/logstash/issues/2387.
GelfUDPFromConnection will return GelfUDP socket with the current TCPConn.
Group will send Entry to each underlying handlers useful when you want to send your log in multiple destination eg stdOut/file/logserver.
LogRotateFileStream will create a TimeRotateFileStream that create file rotator with a given format name and rotation interval this handler will create one static file with the given name and backup file when rotate occurs over the time (with the given interval).
NewMemory init a new Memory handler.
Socket will create a an handler that format and send data into a connection.
Stream will format and write Entry into io.writer.
Syslog will format and send Entry to a syslog server.
TimeRotateFileStream handler will create a TimeRotateWriter that creates a file rotator with a given logFileName format and a rotation interval it will create a new file each time rotate occurs.
TimeRotateFromProvider will create a TimeRotateFromProvider that create io.Writer rotator with a given rotation interval.

# Structs

Memory will store Entry to slice entries mainly develop for testing purpose in order to do some entries assertion.