Skip to content
Snippets Groups Projects
Commit 437cceb5 authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[+] Added the ability to set the registration level. Using words and not...

[+] Added the ability to set the registration level. Using words and not numbers. Changed the Unit test so that he would also use this function.
parent b5ec4dd8
No related branches found
No related tags found
1 merge request!1Features 2466
......@@ -9,6 +9,15 @@ PyMODINIT_FUNC PyInit_libCellFrame(void){
CellFrame_error = PyErr_NewException("libCellFrame.error", NULL, NULL);
PyModule_AddObject(module, "error", CellFrame_error);
PyModule_AddObject(module, "DEBUG", PyLong_FromLong(L_DEBUG));
PyModule_AddObject(module, "INFO", PyLong_FromLong(L_INFO));
PyModule_AddObject(module, "NOTICE", PyLong_FromLong(L_NOTICE));
PyModule_AddObject(module, "MESSAGE", PyLong_FromLong(L_MSG));
PyModule_AddObject(module, "DAP", PyLong_FromLong(L_DAP));
PyModule_AddObject(module, "WARNING", PyLong_FromLong(L_WARNING));
PyModule_AddObject(module, "ATT", PyLong_FromLong(L_ATT));
PyModule_AddObject(module, "ERROR", PyLong_FromLong(L_ERROR));
PyModule_AddObject(module, "CRITICAL", PyLong_FromLong(L_CRITICAL));
//PyModule_AddObject(module, "Dap", (PyObject*)&DapObject_DapObjectType);
return module;
......
......@@ -25,7 +25,7 @@ json_string = """{
init(json_string)
logItInfo("Initialization of the DAP done")
setLogLevel(0)
setLogLevel(DEBUG)
logItInfo("Level logging ""DEBUG"" done")
logItInfo( "Test. Outputting a string using the log_it function in the libdap library")
logItInfo("Outputting a string using the log_it function done")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment