{ "Serilog": { "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.MongoDB", "Serilog.Sinks.Async" ], "MinimumLevel": { "Default": "Information", "Override": { "Microsoft": "Warning", "Microsoft.EntityFrameworkCore.Database.Command": "Warning", "Microsoft.AspNetCore.Mvc.Infrastructure": "Warning" } }, "WriteTo": [ { "Name": "Async", "Args": { "configure": [ { "Name": "File", "Args": { "path": "logs/myapp-.log", "rollingInterval": "Day", "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level:u3}] {Message:lj}{NewLine}{Exception}", "fileSizeLimitBytes": 1073741824, // 1 GB "retainedFileCountLimit": 100, // Retain 100 files "buffered": true, // use async logging "flushToDiskInterval": "00:00:30" // flush every 30 seconds } }, { "Name": "Console", "Args": { "outputTemplate": "[{Timestamp:yyyy/MM/dd HH:mm} {Level:u3}] {SourceContext}:{NewLine} {Message:lj}{NewLine}{Properties:j}{Exception}{NewLine}" } } ] } } ], "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ] }, "AppSettings": { "WebFrontendUrl": "http://localhost:5173", "ImagesBaseUrl": "http://localhost:5173" }, "AllowedHosts": "*", "Jwt": { "Issuer": "http://localhost:5246", "Audience": "http://localhost:5246", "Key": "sworffishhkjfa9dnfdndfu33infnajfj", "ExpiresInMinutes": 60, "RefreshTokenExpiresInDays": 7 }, "SmtpSettings": { "Server": "mail.marcobms.com", "Port": 465, //587, "SenderName": "Marco", "SenderEmail": "vikas@marcobms.com", "Username": "vikas@marcobms.com", "Password": "MarcoVikas@123", "EnableSsl": true }, "EmailSettings": { "SmtpServer": "smtp.gmail.com", "Port": 587, "SenderName": "MarcoIoIT", "SenderEmail": "marcoioitsoft@gmail.com", "Password": "qrtq wfuj hwpp fhqr" }, "Contact": { "Emails": "ashutosh.nehete@marcoaiot.com;vikas@marcoaiot.com;umesh@marcoait.com" }, "MongoDB": { "SerilogDatabaseUrl": "mongodb://localhost:27017/DotNetLogs" }, "AWS": { "AccessKey": "AKIARZDBH3VDMSUUY2FX", "SecretKey": "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", "Region": "us-east-1", "BucketName": "testenv-marco-pms-documents" } }