[logback-user] Object domain from layouts

David Roussel nabble at diroussel.xsmail.com
Thu Jul 25 23:24:53 CEST 2013


You need to cast it from Object to Employee. 

Try...

Employee e = (Employee) event.getArgumentArray()[0]

e.getSalery()

But really you should do an instanceof check first. If you don't know what that is, look it up. 

David




More information about the Logback-user mailing list