Keeps track of logging output to screen and/or files.
More...
#include <casadi_logger.hpp>
All printout from CasADi routines should go through this files.
- Author
- Joel Andersson
- Date
- 2015
Extra doc: https://github.com/casadi/casadi/wiki/L_23u
Definition at line 44 of file casadi_logger.hpp.
|
static void | WriteFunThreadSafe (const char *s, std::streamsize num, bool error) |
|
static void | FlushThreadSafe (bool error) |
|
static void | writeDefault (const char *s, std::streamsize num, bool error) |
| By default, print to std::cout or std::cerr. More...
|
|
static void | flushDefault (bool error) |
| By default, flush std::cout or std::cerr. More...
|
|
static void | writeIgnore (const char *s, std::streamsize num, bool error) |
| Ignore output. More...
|
|
template<bool Err> |
static void | write (const char *s, std::streamsize num) |
| Print output message. More...
|
|
template<bool Err> |
static void | writeCh (char ch) |
| Print log message, single character. More...
|
|
|
static void(* | writeFun )(const char *s, std::streamsize num, bool error) |
| Print warnings, can be redefined. More...
|
|
static void(* | flush )(bool error) |
| Flush buffers. More...
|
|
◆ flushDefault()
static void casadi::Logger::flushDefault |
( |
bool |
error | ) |
|
|
inlinestatic |
◆ FlushThreadSafe()
static void casadi::Logger::FlushThreadSafe |
( |
bool |
error | ) |
|
|
static |
◆ write()
template<bool Err>
static void casadi::Logger::write |
( |
const char * |
s, |
|
|
std::streamsize |
num |
|
) |
| |
|
inlinestatic |
◆ writeCh()
template<bool Err>
static void casadi::Logger::writeCh |
( |
char |
ch | ) |
|
|
inlinestatic |
◆ writeDefault()
static void casadi::Logger::writeDefault |
( |
const char * |
s, |
|
|
std::streamsize |
num, |
|
|
bool |
error |
|
) |
| |
|
inlinestatic |
◆ WriteFunThreadSafe()
static void casadi::Logger::WriteFunThreadSafe |
( |
const char * |
s, |
|
|
std::streamsize |
num, |
|
|
bool |
error |
|
) |
| |
|
static |
◆ writeIgnore()
static void casadi::Logger::writeIgnore |
( |
const char * |
s, |
|
|
std::streamsize |
num, |
|
|
bool |
error |
|
) |
| |
|
inlinestatic |
◆ flush
void(* casadi::Logger::flush) (bool error) |
|
static |
◆ writeFun
void(* casadi::Logger::writeFun) (const char *s, std::streamsize num, bool error) |
|
static |
The documentation for this class was generated from the following file: