setLogLevel method
Set log level at runtime
This allows you to change the verbosity of logs without restarting the app. Useful for user-configurable logging in settings.
Example:
manager.setLogLevel(LogLevel.info); // Show info and above
manager.setLogLevel(LogLevel.error); // Only show errors
Implementation
void setLogLevel(LogLevel level) {
PlayerctlLogger.level = level;
PlayerctlLogger.info('Log level changed to: ${level.name}', 'Config');
}