void log(LogLevel logLvl, string message) { if (OnLog != null && logLevel <= logLvl) { OnLog(this, logLvl, message); } }