Logging Procedures

ProcedureDescriptionExample
logging.flush()Flush the buffer explicitlycall logging.flush();
logging.resetadapter()Resets the adapter back to the default: BASICcall logging.resetadapter();
logging.resetcomplevel(comp_id string)Resets the log level for a specific component back to the default: ERRORcall logging.resetcomplevel('SQL_REWRITER');
logging.resetflushlevel()Resets the flush level back to the default: INFOcall logging.resetflushlevel();
logging.resetlayerlevel(layer_id string)Resets the log level for a specific layer back to the default: ERRORcall logging.resetlayerlevel('GDK_ALL');
logging.setadapter(adapter_id string)Sets the adaptercall logging.setadapter('BASIC');
logging.setcomplevel(comp_id string, level_id string)Sets the log level for a specific componentcall logging.setcomplevel('SQL_PARSER', 'DEBUG');
logging.setflushlevel(level_id string)Sets the flush levelcall logging.setflushlevel('WARNING');
logging.setlayerlevel(layer_id string, level_id string)Sets the log level for a specific layercall logging.setlayerlevel('MAL_ALL', 'DEBUG');

Note: To call these procedures the user requires elevated privileges from sysadmin or monetdb user.

You must include the logging. prefix for these procedures in order to work properly.

For explanation how to use the logging procedures Tracer Tutorial

select * from logging.compinfo();

Returns a table with for each component its id and current logging level.

Component Logging info

idcomponentlog_level
0ACCELERATORM_ERROR
1ALGOM_ERROR
2ALLOCM_ERROR
3BAT_M_ERROR
4CHECK_M_ERROR
5DELTAM_ERROR
6HEAPM_ERROR
7IO_M_ERROR
8WALM_ERROR
9PARM_ERROR
10PERFM_ERROR
11TEMM_ERROR
12THRDM_ERROR
13GEOMM_ERROR
14FITSM_ERROR
15SHPM_ERROR
16SQL_PARSERM_ERROR
17SQL_TRANSM_ERROR
18SQL_REWRITERM_ERROR
19SQL_EXECUTIONM_ERROR
20SQL_STOREM_ERROR
21MAL_REMOTEM_ERROR
22MAL_MAPIM_ERROR
23MAL_SERVERM_ERROR
24MAL_OPTIMIZERM_ERROR
25GDKM_ERROR

For convenience there is also a system view logging.compinfo which selects all from logging.compinfo(). So you can also use query: SELECT * FROM logging.compinfo'` to get the same result.