Skip to content

Instantly share code, notes, and snippets.

@neilherbertuk
Last active January 21, 2023 20:19
Show Gist options
  • Save neilherbertuk/7cc6c799e71d3d7bccf4656eeb208e4f to your computer and use it in GitHub Desktop.
Save neilherbertuk/7cc6c799e71d3d7bccf4656eeb208e4f to your computer and use it in GitHub Desktop.
Example of Logging with an OpenIAM groovy script - https://neilherbert.uk/2023/01/adding-logging-to-openiam-groovy-scripts/
import org.apache.commons.logging.Log
import org.apache.commons.logging.LogFactory
class LoggingExample {
private static final Log log = LogFactory.getLog("LoggingExample")
public void methodName() {
log.info("methodName has been called")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment