vicara-hq / kai-dotnet

The .NET client for using the Kai SDK.
https://vicara.co
4 stars 6 forks source link

Create log file only if module doesn't provide a log stream #25

Closed thebongy closed 4 years ago

rakshith-ravi commented 4 years ago

Why not have a single log stream that does everything instead of having multiple streams, one for the module and one for the library?

In the module we can do:

Log.Init("file name.log", Level.Verbose);
Log.Warn("Test");

Everything (including module logs and the library logs) will then be logged to file name.log

thebongy commented 4 years ago

@rakshith-ravi I have made the logger now accept the file path. Also, now you need to explicitly call Log.Init() first to log anything