C
C#2y 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
Angius2y ago
You'd have to build a custom sink
Fremko
FremkoOP2y ago
oof thats too hard 😦
mindhardt
mindhardt2y ago
Or have two loggers with different dettings (easier, but not recommended)
Fremko
FremkoOP2y ago
too bad there isnt a built in one
grimpows
grimpows2y 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
FremkoOP2y ago
good idea i am trying to figure that out seems too confusing
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y 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.

Did you find this page helpful?