fix logging

This commit is contained in:
Laura Hausmann 2019-12-07 00:52:38 +01:00
parent 0f7b4c329e
commit c9117da075

View file

@ -125,10 +125,15 @@ namespace tgcli.core
{ {
LogStream = new Td.TdApi.LogStream.LogStreamFile LogStream = new Td.TdApi.LogStream.LogStreamFile
{ {
Path = "tdlib.log", Path = Path.Combine(dbdir, "tdlib.log"),
MaxFileSize = 10000000 MaxFileSize = 10000000
} }
}); });
client.Send(new Td.TdApi.SetLogVerbosityLevel
{
NewVerbosityLevel = 2
});
Console.Clear(); Console.Clear();
ClearCurrentConsoleLine(); ClearCurrentConsoleLine();