Add documentation

This commit is contained in:
Thorsten Sommer committed 2015-06-17 17:44:52 +02:00
1 parent 69d0bdabf4
commit 6dab89a1d4
144 files changed
+1107 -549

No files matched your search

@@ -4,6 +4,7 @@ import (
"github.com/SommerEngineering/Ocean/Log"
)
// Function with the setup of the logging device.
func ActivateLoggingDevice() {
Log.AddLoggingDevice(Console{})
}
+2
View File
@@ -5,9 +5,11 @@ import (
"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())