Closed hadashiA closed 7 months ago
Add ZLogger.Param(keyName, value) helper. Let's give ValueTuple<string, T> special treatment.
ZLogger.Param(keyName, value)
ValueTuple<string, T>
It is for specifying the name of the parameter key for each ZLog call individually.
How to:
var id = 111; logger.ZLogInformation($"......... {("userId", id)} ........"); // plain text result // #=> "......... 111 ........" // json result // #=> { "userId": 111, "Message": "......... 111 ........", ... }
same name of namespace and class name is......
After discussion this, I remove ZLogger.Param, and fix up instead of used (string, T)...!
(string, T)
AddLet's giveZLogger.Param(keyName, value)
helper.ValueTuple<string, T>
special treatment.It is for specifying the name of the parameter key for each ZLog call individually.
How to: