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 16:46 Go to next message
kon f is currently offline kon fFriend
Messages: 152
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 16:46]

Report message to a moderator

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

Thank you!
Previous Topic:sluggish editor / visible repaint of scrolled-in content while cursor scrolling
Next Topic:Missing packages during export
Goto Forum:
  


Current Time: Mon Jun 26 08:56:14 GMT 2017

Powered by FUDForum. Page generated in 0.02553 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software