diff --git a/README.md b/README.md index 818d175..89a8701 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@

## How to use? -- Install Easy-Log from nuget or run this command in NuGet Package manager ``` Install-Package Easy-Log -Version 1.0.0 ``` +- Install Easy-Log from nuget or run this command in NuGet Package manager ``` Install-Package Easy-Log -Version 1.0.4 ``` - Add ``` using EasyLog; ``` to top Then add @@ -18,15 +18,16 @@ If you want customize settings add ```cs void SetConfig() { - cfg.LogPath = "NewLog.log";//Set path where you want log to be saved - cfg.Date = false;//If this is set to true it will add date to the log - cfg.Console = false;//If this is set to true it will print the log to Console too + cfg.LogPath = Environment.CurrentDirectory + @"\Application.log";//Set path where you want log to be saved + cfg.ShowDate = true;//If this is set to true it will add date to the log + cfg.Console = true;//If this is set to true it will print the log to Console too } ``` Then in your application main void add these ```cs log.cfg = cfg; -SetConfig();//Run this function only if you want set custom settings +SetConfig(); +log.InitLogger();//Call this to init logger ``` ## Sending logs