C
C#16mo ago
Fremko

❔ serilog problem

I am trying to log something to the console with fixed color, but i cant, basically i want to log data sent from server to the console with green color and data sent from client to the console with red client with level verbose but the problem is that i cant find a way to do it, all i can find is automatic templating that changes every word color
8 Replies
Angius
Angius16mo ago
You'd have to build a custom sink
Fremko
FremkoOP16mo ago
oof thats too hard 😦
mindhardt
mindhardt16mo ago
Or have two loggers with different dettings (easier, but not recommended)
Fremko
FremkoOP16mo ago
too bad there isnt a built in one
grimpows
grimpows16mo ago
dunno if serilog can take 'properties' like NLog info but may pass the 'from' in property with for exemple Client and Server as value then check this property for redirect to two different log parameters ?
Fremko
FremkoOP16mo ago
good idea i am trying to figure that out seems too confusing
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server