Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

log object property not find when used in a class

serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 25, 2020

Dear all,

I have a class object define in a groovy file named NewUser as below :

import org.apache.log4j.Logger
import org.apache.log4j.Level

class NewUser{

NewUser(Issue issue, boolean Prod)
{
    log.setLevel(Level.DEBUG)
}

}

I need to record different log information from that class but when setting the log.SetLevel, I get an error saying :

No such property: log for class: ServiceRequest.NewUser

Any idea why it cannot find the log property ?

regards

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events