Hi all,
I'm trying to use logging for debugging purposes from ScriptRunner in Confluence.
In the ScriptConsole, I set the imports and calling log info as below
however it doesn't print out any log. I tried to use log.debug, log.error and so on
but nothing works.
import com.atlassian.confluence.security.login.LoginManager
import com.atlassian.confluence.user.UserAccessor
import com.atlassian.sal.api.component.ComponentLocator
import com.atlassian.user.GroupManager
import java.time.LocalDateTime
import java.time.ZoneId
log.info "test message"
I searched then found there is a way to use custom logs but I'm not sure how I can use it.
If you can provide an example of how to use it, it would be very helpful.
Thank you.
Jaesang Kim