Show shardid in logs

This commit is contained in:
Master Kwoth
2017-10-29 20:06:48 +01:00
parent 8fff510dc7
commit fb85f0c397
4 changed files with 6 additions and 6 deletions

View File

@ -6,12 +6,12 @@ namespace NadekoBot.Core.Services
{
public class LogSetup
{
public static void SetupLogger()
public static void SetupLogger(int shardId)
{
var logConfig = new LoggingConfiguration();
var consoleTarget = new ColoredConsoleTarget()
{
Layout = @"${date:format=HH\:mm\:ss} ${logger:shortName=True} | ${message}"
Layout = shardId + @" ${date:format=HH\:mm\:ss} ${logger:shortName=True} | ${message}"
};
logConfig.AddTarget("Console", consoleTarget);