+ Refactored all imports + Fixed a bug for the logging regarding removing \n \t \r + Updated to current MGO release + Changed the name of ICCC
20 lines
327 B
Go
20 lines
327 B
Go
package DeviceConsole
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/SommerEngineering/Ocean/Log/Meta"
|
|
)
|
|
|
|
type Console struct {
|
|
}
|
|
|
|
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
|
|
}
|