file

package
v0.0.0-...-c4adbb0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package file implements an output module for logging to a file using rlog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileLogger

func NewFileLogger(path string, removeNewlines bool, overwrite bool) (*fileLogger, error)

NewFileLogger enables logging to a file. The path (path/filename) can be specified either relative to the application directory or as full path (example: "myLog.txt"). When removeNewlines is set, newlines and tabs are replaced with ASCII characters as in syslog. If overwrite is set, the log file is overwritten each time the application is restarted. If disabled, logs are appended.

Types

This section is empty.

Jump to

Keyboard shortcuts

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