Initial commit of Ocean's local development
This commit is contained in:
1 parent
9944a9e1df
commit
86451938ec
116 files changed
+3320
No files matched your search
@@ -0,0 +1,7 @@
|
||||
package DeviceConsole
|
||||
|
||||
import "github.com/SommerEngineering/Ocean/Log"
|
||||
|
||||
func ActivateLoggingDevice() {
|
||||
Log.AddLoggingDevice(Console{})
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package DeviceConsole
|
||||
|
||||
import "fmt"
|
||||
import "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
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/*
|
||||
This is the console logging device. Any received entry is logged to the console.
|
||||
*/
|
||||
package DeviceConsole
|
||||
Reference in new issue
Block a user