Ocean/Log/DeviceConsole/Console.go

22 lines
437 B
Go
Raw Permalink Normal View History

package DeviceConsole
import (
"fmt"
"github.com/SommerEngineering/Ocean/Log/Meta"
)
2015-06-17 15:44:52 +00:00
// The logging device.
type Console struct {
}
2015-06-17 15:44:52 +00:00
// This function is the interface between the logging system and the console logger.
func (dev Console) Log(entries []Meta.Entry) {
for _, entry := range entries {
fmt.Println(entry.Format())
}
}
func (dev Console) Flush() {
// This is not necessary for a console logger
}