fenixblades
fenixblades
CC#
Created by AdamBlade on 1/3/2024 in #help
Updating Packages on old application problems
goto your project references in visual studio, right click that reference, and check its properties to see its physical location. is it some local packages directory on your machine or is it your bin directory?
4 replies
CC#
Created by fenixblades on 3/1/2023 in #help
❔ Serilog file sink from multiple servers has interleaved messages
maybe time to switch to seq or something
10 replies
CC#
Created by fenixblades on 3/1/2023 in #help
❔ Serilog file sink from multiple servers has interleaved messages
true
10 replies
CC#
Created by fenixblades on 3/1/2023 in #help
❔ Serilog file sink from multiple servers has interleaved messages
i figured serilog would asynchronously try to log the message, such as building up a buffer, and then dump to the file as it is able to
10 replies
CC#
Created by fenixblades on 3/1/2023 in #help
❔ Serilog file sink from multiple servers has interleaved messages
seems like a common use case, im pretty sure i use nlog on other apps and do the same thing without issue
10 replies
CC#
Created by fenixblades on 3/1/2023 in #help
❔ Serilog file sink from multiple servers has interleaved messages
windows, app is running in IIS. the log file is at a network shared path that all apps are pointing to
10 replies
CC#
Created by fenixblades on 12/13/2022 in #help
❔ Log from helper class without creating new context? (Serilog)
i don't follow. my entrypoint DI is setup like this
Host.CreateDefaultBuilder(args)
.ConfigureServices((context, services) =
{
services.AddHosted<ServiceA>();
services.AddHosted<ServiceB>();

services.AddScoped<Helper>();
}
Host.CreateDefaultBuilder(args)
.ConfigureServices((context, services) =
{
services.AddHosted<ServiceA>();
services.AddHosted<ServiceB>();

services.AddScoped<Helper>();
}
and each service and helper has the standard ILogger<T> ctor parameter, where T is that service/class name
5 replies
CC#
Created by Rhaenyra on 12/9/2022 in #help
❔ How did you learn . NET ?
start small projects, look up how to do something each time you get stuck
12 replies