Skip to content

Logging

ExpandingDev edited this page Jul 8, 2019 · 1 revision

Logging In Buckey

Bucket utilizes two methods of logging: syslog, and it's own logging functions. Syslog is used sparingly for important events, such as errors, start ups and shut downs. Buckey runs with the "buckey" syslog identifier and runs under the USER syslog facility. Syslog is initialized in main.cpp

The logging functions that Buckey provides for heavier use (debug, info, warnings, smaller errors) are static methods within the Buckey class. These methods are: Buckey::logDebug(), logInfo(), logWarn(), logError().

All log messages that go through Buckey's log methods are written to buckey.log, which is at the top level of Buckey's running directory.

When writing your own Services and Modes, please adhere to these logging conventions. They are provided to make programming and mantainance easier.

Clone this wiki locally