Thanks David, i understand you point but i'm still can't access to any Employee attribute, this is what i see using getArgumentArray():
sbuf.append(event.getArgumentArray()[0]);
Console:
INFO [main] Fred ............... com.render.domain.Employee@39f58a0e
and traying to get some attributes to this object I only can access to getClass(), there is no getId(), getSalary() or getCompany().
event.getArgumentArray()[0].getClass()
Any idea?
Thanks
Best regards.
From: nabble@diroussel.xsmail.com
Date: Thu, 25 Jul 2013 21:39:56 +0100
To: logback-user@qos.ch
Subject: Re: [logback-user] Object domain from layouts
In your app code call the logger like this:
log.info("Employee: {}", myEmployee);
Then look at each arg and check if it is an Employee.
David
_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user