빌드별 로그 세팅 방식 변경
This commit is contained in:
parent
610f6dc30c
commit
822686fac9
|
|
@ -12,9 +12,15 @@
|
||||||
archiveEvery="Day"
|
archiveEvery="Day"
|
||||||
maxArchiveFiles="1000"
|
maxArchiveFiles="1000"
|
||||||
/>
|
/>
|
||||||
|
<target
|
||||||
|
xsi:type="ColoredConsole"
|
||||||
|
name="console"
|
||||||
|
layout="${longdate} ${uppercase:${level}} | ${callsite} | ${message}"
|
||||||
|
/>
|
||||||
</targets>
|
</targets>
|
||||||
|
|
||||||
<rules>
|
<rules>
|
||||||
<logger name="*" minlevel="Debug" writeTo="logfile" />
|
<logger name="*" minlevel="${configsetting:logLevel}" writeTo="logfile" />
|
||||||
|
<logger name="*" minlevel="${configsetting:logLevel}" writeTo="console" />
|
||||||
</rules>
|
</rules>
|
||||||
</nlog>
|
</nlog>
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,16 @@ using Server.System;
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
|
//로그 레벨 설정
|
||||||
|
#if DEBUG
|
||||||
|
NLog.GlobalDiagnosticsContext.Set("logLevel", "Trace");
|
||||||
|
#elif LIVE
|
||||||
|
NLog.GlobalDiagnosticsContext.Set("logLevel", "Info");
|
||||||
|
#endif
|
||||||
//웹서버 초기화
|
//웹서버 초기화
|
||||||
ProtocolProcessor.Init();
|
ProtocolProcessor.Init();
|
||||||
//깃 웹훅 초기화
|
//깃 웹훅 초기화
|
||||||
//GItWebhook.Init();
|
GItWebhook.Init();
|
||||||
|
|
||||||
////http용 데이터
|
////http용 데이터
|
||||||
//app.MapPost("/", ProtocolProcessor.Process);
|
//app.MapPost("/", ProtocolProcessor.Process);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue