Ocean/Log/DeviceConsole/Console.go
2015-06-17 17:44:52 +02:00

22 lines
437 B
Go

package DeviceConsole
import (
"fmt"
"github.com/SommerEngineering/Ocean/Log/Meta"
)
// The logging device.
type Console struct {
}
// 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
}