improved consistency in argument handling, introduction of dpm_con (not everything needs to be in the log)

This commit is contained in:
Chris Punches
2025-03-26 01:10:18 -04:00
parent b8ee0f9eff
commit 1d34a62e38
12 changed files with 288 additions and 174 deletions

View File

@@ -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
*