5#include "pybind11/pybind11.h"
38 throw pycohal::PycohalLogLevelEnumError();
60 throw PycohalLogLevelEnumError();
67 py::enum_<uhal::defs::NodePermission> ( aModule,
"NodePermission" )
72 py::enum_<uhal::defs::BlockReadWriteMode> ( aModule,
"BlockReadWriteMode" )
78 py::enum_<pycohal::LogLevel> ( aModule,
"LogLevel" )
void wrap_enums(pybind11::module_ &)
void setLogLevelTo(const pycohal::LogLevel &logLevel)
Wrapper function for uhal::setLogLevelTo - converts pycohal::LogLevel enum values to C++ uhal log-lev...
void wrap_logging_functions(pybind11::module_ &)
LogLevel
Log level enum - switch to using enums for setting log-levels in python.
const bool & LoggingIncludes(const pycohal::LogLevel &logLevel)
Wrapper function for uhal::LoggingIncludes - converts pycohal::LogLevel enum values to C++ uhal log-l...
void setLogLevelTo(const FatalLevel &)
Function to specify, at runtime, that only messages with a severity level above Fatal should be logge...
const bool & LoggingIncludes(const FatalLevel &)
Function to check at runtime whether the level Fatal is to be included in the log output.
void disableLogging()
Function to disable all logging levels.
void setLogLevelFromEnvironment(const char *aEnvVar)
Function to specify that the logging level should be retrieved from an environment variable.