초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
using ServerCommon;
using UGQDatabase.Models;
using ServerCore; using ServerBase;
namespace UGQDataAccess.Logs;
public static class UgqApiBusinessLogger
{
public static void initBusinessLog()
{
BusinessLogger.setup(new NLogAppender()
, new JsonText()
, LogTransToOutputType.TransToMultyLine);
Log.getLogger().info($"Success ServerLogicBase.onInitBusinessLog()");
}
public static ServerErrorCode collectLogs(LogAction logAction, AccountEntity accountEntity, List<ILogInvoker> invokers)
{
UgqLogAccount ugqLogAccount = new UgqLogAccount(accountEntity);
return BusinessLogger.collectLogs(logAction, ugqLogAccount, invokers);
}
public static ServerErrorCode collectLogs(LogAction logAction, string userGuid, List<ILogInvoker> invokers)
{
UgqLogAccount ugqLogAccount = new UgqLogAccount(userGuid);
return BusinessLogger.collectLogs(logAction, ugqLogAccount, invokers);
}
public static ServerErrorCode collectLogs(LogAction logAction, AdminAccountEntity accountEntity, List<ILogInvoker> invokers)
{
UgqLogAdmin ugqLogAdmin = new UgqLogAdmin(accountEntity);
return BusinessLogger.collectLogs(logAction, ugqLogAdmin, invokers);
}
public static ServerErrorCode collectLogs(LogAction logAction, string userGuid, string nickname, List<ILogInvoker> invokers)
{
UgqLogAccount ugqLogAccount = new UgqLogAccount(userGuid, nickname);
return BusinessLogger.collectLogs(logAction, ugqLogAccount, invokers);
}
}