console

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: 3 Imported by: 0

Documentation

Overview

Implements a console logger for stdout/stderr.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleLogger

type ConsoleLogger struct {
	// contains filtered or unexported fields
}

Console logger (type exported for deprecated stdout module but fields are private).

func NewStderrLogger

func NewStderrLogger(removeNewlines bool) *ConsoleLogger

Creates a logger for stderr.

removeNewlines: true to replace newlines

return: instace of console logger

func NewStdoutLogger

func NewStdoutLogger(removeNewlines bool) *ConsoleLogger

Creates a logger for stdout.

removeNewlines: true to replace newlines

return: instace of console logger

func (*ConsoleLogger) LaunchModule

func (conf *ConsoleLogger) LaunchModule(dataChan <-chan (*common.RlogMsg), flushChan chan (chan (bool)))

Intended to run in a separate goroutine. It prints log messages to console.

dataChan: receives log messages.

flushChan: receives flush command.

Jump to

Keyboard shortcuts

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