42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"Serilog": {
|
|
"Using": ["Serilog.Sinks.Console", "Serilog.Sinks.File"],
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Warning",
|
|
"System": "Warning",
|
|
"Telegram.Bot": "Information"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console",
|
|
"Args": {
|
|
"outputTemplate": "[{Timestamp:HH:mm:ss.fff}] [{Level:u3}] [{SourceContext:l}] {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "logs/telegram-bot-.log",
|
|
"rollingInterval": "Day",
|
|
"retainedFileCountLimit": 7,
|
|
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] [{SourceContext:l}] {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
],
|
|
"Enrich": ["FromLogContext", "WithMachineName", "WithThreadId"]
|
|
},
|
|
"TelegramBot": {
|
|
"BotToken": "8461762778:AAEk1wHMqd84_I_loL9FQPciZakGYe557KA"
|
|
},
|
|
"Ollama": {
|
|
"Url": "http://10.10.1.202:11434",
|
|
"MaxRetries": 3,
|
|
"MaxTokens": 1000,
|
|
"Temperature": 0.7,
|
|
"SystemPromptFilePath": "system-prompt.txt"
|
|
}
|
|
}
|