An open API service indexing awesome lists of open source software.

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.

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#