Documentation ¶ Index ¶ func New(cfg ...*Config) transport.Transport type Config type File func (f *File) Write(p []byte) (n int, err error) func (f *File) WriteWithLevel(p []byte, level string) (n int, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(cfg ...*Config) transport.Transport Types ¶ type Config ¶ type Config struct { FilePath string // File *os.File // Level specify the min level. Level string // Extact means only the specify level to write // Which is used for custom access, error, debug log. Exact bool } type File ¶ type File struct { // contains filtered or unexported fields } func (*File) Write ¶ func (f *File) Write(p []byte) (n int, err error) func (*File) WriteWithLevel ¶ added in v1.4.3 func (f *File) WriteWithLevel(p []byte, level string) (n int, err error) Source Files ¶ View all Source files file.go Click to show internal directories. Click to hide internal directories.