This causes error messages to not come out due to m_output_logger is initialized to 0, from ocsdDefaultErrorLogger::LogError():
void ocsdDefaultErrorLogger::LogError(const ocsd_hndl_err_log_t handle, const ocsdError *Error)
{
// only log errors that match or exceed the current verbosity
if(m_Verbosity >= Error->getErrorSeverity())
{
// print out only if required
if(m_output_logger)
{
...
}
So either documentation should say that default logger does not output anywhere (and either creation of a logger is required to output errors or need to call some functions to modify existing default logger), or OpenCSD library should be updated to indeed make the default logger go to stderr.
In prog_guide_main.md it states:
However if I use a DecodeTree without calling any functions to setup/initialize loggers than nothing comes out of stderr.
Indeed one can see in ocsdDefaultErrorLogger::ocsdDefaultErrorLogger() that m_output_logger is initialized to 0:
This causes error messages to not come out due to m_output_logger is initialized to 0, from ocsdDefaultErrorLogger::LogError():
So either documentation should say that default logger does not output anywhere (and either creation of a logger is required to output errors or need to call some functions to modify existing default logger), or OpenCSD library should be updated to indeed make the default logger go to stderr.