From ed7d7b405e1de8010f2ddeecf2b3798e2f07ad31 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Wed, 21 Jan 2015 10:26:54 -0600 Subject: Split file cleanup --- logger/logsystem.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'logger/logsystem.go') diff --git a/logger/logsystem.go b/logger/logsystem.go index 3601e926c..8458b938f 100644 --- a/logger/logsystem.go +++ b/logger/logsystem.go @@ -6,6 +6,14 @@ import ( "sync/atomic" ) +// LogSystem is implemented by log output devices. +// All methods can be called concurrently from multiple goroutines. +type LogSystem interface { + GetLogLevel() LogLevel + SetLogLevel(i LogLevel) + LogPrint(LogLevel, string) +} + // NewStdLogSystem creates a LogSystem that prints to the given writer. // The flag values are defined package log. func NewStdLogSystem(writer io.Writer, flags int, level LogLevel) LogSystem { -- cgit v1.2.3