feat: adjust logging
This commit is contained in:
parent
fc6e21e2d8
commit
3c26df9e72
2 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ public class AuthSession : TcpSession
|
|||
this._logger.LogDebug("Client Alive time: {ClientAliveTime}", clientAliveTime);
|
||||
this._logger.LogDebug("Might be a flag: {Flag}", buffer[7]);
|
||||
|
||||
this._logger.LogDebug("Full buffer: {Buffer}", Encoding.ASCII.GetString(dataBuffer.ToArray()));
|
||||
this._logger.LogDebug("Full buffer: {Buffer}", BitConverter.ToString(dataBuffer.ToArray()));
|
||||
|
||||
var rawPacket = new RawPacket((OperationCode)opCode, dataBuffer, clientAliveTime, buffer[7],
|
||||
buffer[4], this.Id, this);
|
||||
|
|
|
@ -13,8 +13,8 @@ var builder = Host.CreateApplicationBuilder();
|
|||
var configurationRoot = builder.Configuration.AddJsonFile("settings.json", false, true)
|
||||
.AddEnvironmentVariables().Build();
|
||||
builder.Services.AddLogging();
|
||||
builder.Logging.AddFile("Logs/Server-{Date}.log", LogLevel.Trace);
|
||||
builder.Logging.AddFile("Logs/Server-{Date}.json.log", isJson: true, minimumLevel: LogLevel.Trace);
|
||||
builder.Logging.AddFile("Logs/Server-{Date}.log", LogLevel.Debug);
|
||||
builder.Logging.AddFile("Logs/Server-{Date}.json.log", isJson: true, minimumLevel: LogLevel.Debug);
|
||||
builder.Services.AddCouchContext<WonderkingContext>(cfg =>
|
||||
{
|
||||
cfg.UseEndpoint(configurationRoot["DB:Endpoint"] ?? throw new InvalidOperationException())
|
||||
|
|
Loading…
Reference in a new issue