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
3BATM_ERROR
4CHECKM_ERROR
5DELTAM_ERROR
6HEAPM_ERROR
7IOM_ERROR
8WALM_ERROR
9PARM_ERROR
10PERFM_ERROR
11TEMM_ERROR
12THRDM_ERROR
13TMM_ERROR
14GEOMM_ERROR
15FITSM_ERROR
16SHPM_ERROR
17LOADERM_ERROR
18SQL_PARSERM_ERROR
19SQL_TRANSM_ERROR
20SQL_REWRITERM_ERROR
21SQL_EXECUTIONM_ERROR
22SQL_STOREM_ERROR
23MAL_REMOTEM_ERROR
24MAL_MAPIM_ERROR
25MAL_SERVERM_ERROR
26MAL_LOADERM_ERROR
27MAL_OPTIMIZERM_ERROR
28GDKM_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.