Last active
January 21, 2023 20:19
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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