Ocean/Log/DeviceDatabase/ReceiveLogging.go

17 lines
384 B
Go
Raw Normal View History

package DeviceDatabase
import (
"github.com/SommerEngineering/Ocean/Log/Meta"
)
2015-06-17 15:44:52 +00:00
// This function is the interface between the logging system and the database logger.
func (dev Database) Log(entries []Meta.Entry) {
//
// Cannot log here to prevent endless loop (consumer is also producer)
//
2015-06-17 15:44:52 +00:00
// Write every incoming batch to the cache:
write2Cache(entries)
}