https://github.com/u1035/lightlog
Lightweight application log library
https://github.com/u1035/lightlog
csharp logger logging logging-library netstandard20
Last synced: about 1 year ago
JSON representation
Lightweight application log library
- Host: GitHub
- URL: https://github.com/u1035/lightlog
- Owner: u1035
- License: mit
- Created: 2020-05-09T08:54:30.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-24T08:26:15.000Z (about 6 years ago)
- Last Synced: 2025-02-08T14:45:03.986Z (over 1 year ago)
- Topics: csharp, logger, logging, logging-library, netstandard20
- Language: C#
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/u1035/LightLog)
[](https://www.nuget.org/packages/LightLog)
[](https://www.nuget.org/packages/LightLog)

# LightLog
Lightweight application log library
(under slow lazy development)
Inspired by NLog, but I wanted to create simple solution by myself.
You can put a line in your ViewModel:
```csharp
public Logger Logger { get; } = LogManager.Instance;
```
and bind to collection of log records in XAML with something like this:
```xaml
```
UserControl for displaying log records will appear in next versions.
In code you can use logger like this:
```csharp
Logger.Debug("Program started");
```
and get the following line in your log file:
```
2020-05-23T22:41:22.5116388+03:00||PrintInfo|MainViewModel.cs|17|Debug|Program started
```
Where you will find time of event, name of function, source file name and line, severity of the message, and your message.