Merge pull request #199 from Salanto/Literally-hitler
Update logger slot with the naming sheme
This commit is contained in:
commit
9cdf1068ac
@ -61,7 +61,7 @@ public slots:
|
||||
/**
|
||||
* @brief Adds an OOC log entry to the area buffer and writes it to the respective log format.
|
||||
*/
|
||||
void logOOC(const QString& f_charName, const QString& f_oocName, const QString& f_ipid,
|
||||
void logOOC(const QString& f_char_Name, const QString& f_ooc_name, const QString& f_ipid,
|
||||
const QString& f_area_name, const QString& f_message);
|
||||
|
||||
/**
|
||||
@ -89,7 +89,7 @@ public slots:
|
||||
/**
|
||||
* @brief Adds a modcall event to the area buffer, also triggers modcall writing.
|
||||
*/
|
||||
void logModcall(const QString& f_charName, const QString &f_ipid, const QString& f_oocName, const QString& f_area_name);
|
||||
void logModcall(const QString& f_char_name, const QString &f_ipid, const QString& f_ooc_name, const QString& f_area_name);
|
||||
|
||||
/**
|
||||
* @brief Logs any connection attempt to the server, wether sucessful or not.
|
||||
|
@ -114,11 +114,11 @@ void ULogger::logBan(const QString &f_moderator, const QString &f_target_ipid, c
|
||||
updateAreaBuffer("SERVER",l_logEntry);
|
||||
}
|
||||
|
||||
void ULogger::logModcall(const QString &f_char_name, const QString &f_ipid, const QString &f_oocName, const QString &f_area_name)
|
||||
void ULogger::logModcall(const QString &f_char_name, const QString &f_ipid, const QString &f_ooc_name, const QString &f_area_name)
|
||||
{
|
||||
QString l_time = QDateTime::currentDateTime().toString("ddd MMMM d yyyy | hh:mm:ss");
|
||||
QString l_logEvent = QStringLiteral("[%1][%2][MODCALL][%5][%3(%4)]\n")
|
||||
.arg(l_time, f_area_name, f_char_name, f_oocName, f_ipid);
|
||||
.arg(l_time, f_area_name, f_char_name, f_ooc_name, f_ipid);
|
||||
updateAreaBuffer(f_area_name, l_logEvent);
|
||||
|
||||
if (ConfigManager::loggingType() == DataTypes::LogType::MODCALL) {
|
||||
|
Loading…
Reference in New Issue
Block a user