https://github.com/devmartins/logarquivocore
Biblioteca .Net Standard para gerar log em arquivo txt.
https://github.com/devmartins/logarquivocore
csharp
Last synced: 3 months ago
JSON representation
Biblioteca .Net Standard para gerar log em arquivo txt.
- Host: GitHub
- URL: https://github.com/devmartins/logarquivocore
- Owner: devmartins
- License: mit
- Created: 2019-04-05T01:03:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-05T01:37:32.000Z (over 7 years ago)
- Last Synced: 2025-05-26T19:55:30.839Z (about 1 year ago)
- Topics: csharp
- Language: C#
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LogArquivoCore
Biblioteca .Net Standard para gerar log em arquivo txt.
Métodos disponiveis:
Log.Excecao(Exception ex)
Log.Erro(string conteudo)
Nuget Package:
LogArquivoCore

Requer um arquivo "appsettings.json" na pasta do projeto com a chave GerarLog:
```js
{
"GerarLog": true
}
```
Exemplo:
```c#
using LogArquivoCore;
try
{
File.ReadAllText("qualquer.txt");
}
catch (Exception ex)
{
Log.Excecao(ex);
}
```
Ferramentas:
Visual Studio 2017 Community
.Net Standard 2.0 - Roda em apps .Net Core 2.0 Console/Web
C#