Skip to content

Instantly share code, notes, and snippets.

@rtfmoz2
rtfmoz2 / logging-in-ognl.js
Last active May 1, 2024 00:45
Logging with OGNL on Ping 11.3
// OGNL logging
// Use the logging classes to output messages from OGNL processing
// Generally used for testing script behaviour and input values
#log = @org.apache.commons.logging.LogFactory@getLog("com.pingidentity.ognl.logger"),
// log a message
#log.debug("Your log messages here"),
// log a multiline message
#log.debug("Send + "\r" + a + "\r" + Multiline + "\r" + "Log" + "\r" + "Entry"),
when HTTP_REQUEST {
set coffee { 5)3;; 4(3;; 2+1-5+1;; 2|1 5|1]1;; 2\1-5/1;;_9_2;;\1_9/1}
set response "Coffee 3.0\n\n"
switch [HTTP::uri] {
"/coffee" {
foreach {mychar myrepeat} [ split $coffee {} ] {
if {$mychar equals ";"} {
append response "[format "%-15s" $cuppa]$cuppa\n"
unset cuppa
} else {