
#include "Util/log.H"#include "rutz/compat_snprintf.h"#include "rutz/demangle.h"#include "rutz/error_context.h"#include <cerrno>#include <cstdarg>#include <cstdlib>#include <cstdio>#include <stdexcept>#include <sys/types.h>#include <unistd.h>#include <cstring>
Go to the source code of this file.
Defines | |
| #define | LBS 1024 |
| total max size of a log entry | |
Functions | |
| void | sendlog (const char *msg,...) |
| Send a log. NON-GNUC, thread-unsafe version. | |
| void | report_current_exception (const int line, const char *file) throw () |
| Helper function for REPORT_CURRENT_EXCEPTION macro. | |
Variables | |
| int | LOG_FLAGS |
| Bitwise-or'ed combination of above flags. | |
| int | MYLOGVERB = LOG_INFO |
| const char * | MYLOGPREFIX = 0 |
| Null by default, but if set to non-null this string will be prefixed to every log message. | |
| char | MYLOGFUN [LBS2] |
| char | MYLOGFIL [LBS2] |
| int | MYLOGLIN |
| int | MYLOGLEV |
| int | MYLOGIDVAL |
| bool | MYLOG_USEP |
| bool | MYLOG_USEID |
Interface to syslog
Definition in file log.C.
| #define LBS 1024 |
| void report_current_exception | ( | const int | line, | |
| const char * | file | |||
| ) | throw () |
Helper function for REPORT_CURRENT_EXCEPTION macro.
Definition at line 315 of file log.C.
References rutz::demangled_name().
| void sendlog | ( | const char * | msg, | |
| ... | ||||
| ) |
| int LOG_FLAGS |
Bitwise-or'ed combination of above flags.
Definition at line 56 of file log.C.
Referenced by main(), mexFunction(), and sendlog().
| const char* MYLOGPREFIX = 0 |
| int MYLOGVERB = LOG_INFO |
Log verbosity (see <syslog.h> for possible values). Default value is LOG_DEBUG. Executables don't need to do anything special unless they need a non-default value.
Definition at line 60 of file log.C.
Referenced by BeoSubSaliency::BeoSubSaliency(), ColorTracker::ColorTracker(), ComplexChannel::combineOutputs(), RawVisualCortex::combineOutputs(), IntegerRawVisualCortex::combineOutputsInt(), IntegerComplexChannel::combineOutputsInt(), SingleChannel::combineSubMaps(), ComplexObject::ComplexObject(), RawVisualCortex::getChannelOutputMap(), SpectralResidualChannel::getOutput(), SingleChannel::getRawCSmap(), IntegerSimpleChannel::getRawCSmapInt(), main(), BeoMap::makePanorama(), mexFunction(), ModelManager::paramChanged(), SingleChannel::postProcessMap(), BeeSTEM::run(), BeoChip::run(), sendlog(), submain(), BeoChip::writeByte(), and BeeSTEM::writeByte().
1.6.3