improved consistency in argument handling, introduction of dpm_con (not everything needs to be in the log)
This commit is contained in:
@@ -121,6 +121,17 @@ extern "C" {
|
||||
*/
|
||||
void dpm_log(int level, const char* message);
|
||||
|
||||
/**
|
||||
* @brief Logs messages to console only
|
||||
*
|
||||
* Allows modules to log messages to the console only, skipping any file logging.
|
||||
* This is useful for user-facing output that doesn't need to be recorded.
|
||||
*
|
||||
* @param level The log level as an integer (0=FATAL, 1=ERROR, 2=WARN, 3=INFO, 4=DEBUG)
|
||||
* @param message The message to log
|
||||
*/
|
||||
void dpm_con(int level, const char* message);
|
||||
|
||||
/**
|
||||
* @brief Sets the logging level
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user