Initial commit of Ocean's local development

This commit is contained in:
Thorsten Sommer committed 2014-04-26 11:18:56 +02:00
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{})
}
+17
View File
@@ -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
}
+4
View File
@@ -0,0 +1,4 @@
/*
This is the console logging device. Any received entry is logged to the console.
*/
package DeviceConsole