file

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2014 License: MIT Imports: 4 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