Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
atomsk-0 committed Apr 21, 2022
2 parents 226cfba + 1643ba3 commit 547a3b1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</p>

## 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
Expand All @@ -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
Expand Down

0 comments on commit 547a3b1

Please sign in to comment.