readme update
parent
e9e3129c13
commit
f6a9230d85
22
README.md
22
README.md
|
@ -57,13 +57,25 @@ For this integration, the setup is very simple. All you need is an API Key gener
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Database
|
## Logging
|
||||||
The database is SQLite. It is created automatically at the first start of the service, if it is missing. The path where the database is stored can be configured as follows:
|
The logging functionality is managed with Serilog, and its configuration is done in the ```appsettings.json``` file. In addition to its standard configuration, Correo also has a preconfigured area where three destinations for logs are available: file, Postgres database and Seq. Each of the destinations can be activated or not. If logging in the console is sufficient, all additional logging destinations can be disabled.
|
||||||
|
This configuration area is:
|
||||||
|
|
||||||
```
|
```
|
||||||
"Workspace": "workspace",
|
"Logs": {
|
||||||
"ConnectionStrings": {
|
"File": {
|
||||||
"DatabaseConnection": "Data Source={Workspace}\\correo.db"
|
"Enabled": false,
|
||||||
|
"Path": "logs/log.txt"
|
||||||
|
},
|
||||||
|
"Postgres": {
|
||||||
|
"Enabled": false,
|
||||||
|
"Connection": "Host=<host>;Port=5432;User ID=<user>;Password=<password>;Database=<database>;"
|
||||||
|
},
|
||||||
|
"Seq": {
|
||||||
|
"Enabled": false,
|
||||||
|
"Url": "",
|
||||||
|
"ApiKey": ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue