Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Logging with substitution
Logging with substitution [message #992447] Fri, 21 December 2012 11:46 Go to next message
kon f is currently offline kon f
Messages: 112
Registered: March 2012
Senior 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 Smile):

@Inject
private Logger log;

...

log.info("test: {}", "01");


Thank you!

Kon

[Updated on: Fri, 21 December 2012 11:46]

Report message to a moderator

Re: Logging with substitution [message #997365 is a reply to message #992447] Mon, 07 January 2013 02:25 Go to previous message
kon f is currently offline kon f
Messages: 112
Registered: March 2012
Senior Member
Any suggestions? Am I doing it wrong?

Thank you!
Previous Topic:e(fx)clipse 0.8.0 - e4 for JavaFX
Next Topic:Product export jar not generated
Goto Forum:
  


Current Time: Thu Jul 24 02:37:58 EDT 2014

Powered by FUDForum. Page generated in 0.02023 seconds