68 lines
1.7 KiB
JSON
68 lines
1.7 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Debug",
|
|
"System": "Information",
|
|
"Microsoft": "Information"
|
|
}
|
|
},
|
|
"ConnectionStrings": {
|
|
"Sqlite": "Data Source=piwigoSync.db",
|
|
"InMemory": "InMemorySyncDb"
|
|
},
|
|
"Settings": {
|
|
"DbProvider": "Sqlite",
|
|
"ImageRootDirectory": ".\\"
|
|
},
|
|
"NLog": {
|
|
"autoReload": true,
|
|
"throwConfigExceptions": true,
|
|
"default-wrapper": {
|
|
"type": "AsyncWrapper",
|
|
"overflowAction": "Block"
|
|
},
|
|
"targets": {
|
|
"cli-console": {
|
|
"type": "ColoredConsole",
|
|
"layout": "${longdate} | ${uppercase:${level}} | ${logger} | ${message} ${exception:format=tostring}",
|
|
"rowHighlightingRules": [
|
|
{
|
|
"condition": "level == LogLevel.Trace",
|
|
"foregroundColor": "DarkGray"
|
|
},
|
|
{
|
|
"condition": "level == LogLevel.Debug",
|
|
"foregroundColor": "White"
|
|
},
|
|
{
|
|
"condition": "level == LogLevel.Info",
|
|
"foregroundColor": "DarkGreen"
|
|
},
|
|
{
|
|
"condition": "level == LogLevel.Warn",
|
|
"foregroundColor": "Yellow"
|
|
},
|
|
{
|
|
"condition": "level == LogLevel.Error",
|
|
"foregroundColor": "DarkMagenta"
|
|
},
|
|
{
|
|
"condition": "level == LogLevel.Fatal",
|
|
"foregroundColor": "DarkRed"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"rules": [
|
|
{
|
|
"logger": "*",
|
|
"minLevel": "Info",
|
|
"writeTo": "cli-console"
|
|
},
|
|
{
|
|
"logger": "Microsoft.*",
|
|
"maxLevel": "Info"
|
|
}
|
|
]
|
|
}
|
|
} |