Hi
I would like to test the policy viewer.
I have a problem creating the RuleUsage log. In my draft, two characters are too much - and I have no idea how I can correct that.
Here the correctly format :
Set User-Defined.logLine =
DateTime.Date.ToString("%YYYY-%MM-%DD") +
" " +
DateTime.Time.ToString("%hh:%mm:%ss") +
" "" +
List.OfString.ToString(Rules.EvaluatedRules) +
"" "" +
List.OfString.ToString(Rules.FiredRules) +
"""
FileSystemLogging.WriteLogEntry(User-Defined.logLine)<RuleUsage.log>
In my draft, these lines differ :
List.OfString.ToString(Rules.EvaluatedRules, ") +
List.OfString.ToString(Rules.FiredRules, ") +
I see an additional symbol in this line, but I can`t see the way to make it better. See the attachment.
I am looking forward to help - greetings Webse
Solved! Go to Solution.
The symbols are just the quotation marks for the delimiter for string list entries used in the list.
For example:
no delimiter = "List.OfString.ToString(Rules.EvaluatedRules, "")" = 14224
, (comma) as delimiter = "List.OfString.ToString(Rules.EvaluatedRules, ",")" = 1,4224
Regarding to your picture, you can change the delimiter in the last window (Parameters for Property).
Click on "Delimiter (String)" and enter your delimiter:
Here an example of the output: The first lines without delimiter and the next lines comma separated.
Regards,
Marcel
Moved to web gateway forum
The symbols are just the quotation marks for the delimiter for string list entries used in the list.
For example:
no delimiter = "List.OfString.ToString(Rules.EvaluatedRules, "")" = 14224
, (comma) as delimiter = "List.OfString.ToString(Rules.EvaluatedRules, ",")" = 1,4224
Regarding to your picture, you can change the delimiter in the last window (Parameters for Property).
Click on "Delimiter (String)" and enter your delimiter:
Here an example of the output: The first lines without delimiter and the next lines comma separated.
Regards,
Marcel
Hello mkutrieba
Excellent ! Thank you for your help.
Dear,
Please let us know log header string, because I have configured but unfortunately unable geeting logs.
Tried Log Header:-
So request you to please let us know exact log header, also If you possible please provide rule set for the same
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.
Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership: