| Logging with substitution [message #992447] |
Fri, 21 December 2012 11:46  |
kon f Messages: 27 Registered: March 2012 |
Junior Member |
|
|
Hey,
I'm trying to log some message with a substitution. The execution causes an IllegalArgumentException. I had a look in the source code and apparently I'm suppose to use {} as placeholder. So, I tried following code (as used from SLF4J ):
@Inject
private Logger log;
...
log.info("test: {}", "01");
Thank you!
Kon
[Updated on: Fri, 21 December 2012 11:46] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01834 seconds