Skip to content
Snippets Groups Projects
Commit 34308f8f authored by Hkorb's avatar Hkorb
Browse files

improvement in logger bindings

parent 2bddaba3
No related branches found
No related tags found
1 merge request!170Kernel templetization and efficiency improvements
class Logger:
def __init__(self, *args, **kwargs) -> None: ...
def change_log_path(self) -> None: ...
def initialize_logger(self) -> None: ...
@staticmethod
def change_log_path(path: str) -> None: ...
@staticmethod
def initialize_logger() -> None: ...
def vf_log_critical(message: str) -> None: ...
def vf_log_debug(message: str) -> None: ...
......
......@@ -10,8 +10,8 @@ namespace logging
py::module loggerModule = parentModule.def_submodule("logger");
py::class_<vf::logging::Logger>(loggerModule, "Logger")
.def("initialize_logger", &vf::logging::Logger::initalizeLogger)
.def("change_log_path", &vf::logging::Logger::changeLogPath);
.def_static("initialize_logger", &vf::logging::Logger::initalizeLogger)
.def_static("change_log_path", &vf::logging::Logger::changeLogPath, py::arg("path"));
// use f-strings (f"text {float}") in python for compounded messages
loggerModule.def("vf_log_trace", [](std::string message){ VF_LOG_TRACE(message); }, py::arg("message"));
......
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