Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #1674

Re: Terse code sought

From markspace <-@.>
Newsgroups comp.lang.java.help
Subject Re: Terse code sought
Date 2012-03-26 08:02 -0700
Organization A noiseless patient Spider
Message-ID <jkq0eh$4jl$1@dont-email.me> (permalink)
References <8f7sm7hd60f72vlc47ul8793gvgv9j1a89@4ax.com> <EXrbr.7472$Ce4.1357@newsfe21.iad> <KYwbr.11514$532.1969@newsfe14.iad> <jkoge2$3ch$1@dont-email.me> <fbXbr.22788$pc1.18103@newsfe11.iad>

Show all headers | View raw


On 3/26/2012 3:04 AM, Arved Sandstrom wrote:

> Point being, without thinking of a macro or some other way to automate
> the generation of the logger statement - or *any* approach - you're not
> answering Roedy's question.
>
> logger.log(Level.FINEST, "${var} = {0}", ${var});


I don't like this because to print out multiple variables, you'd have to 
use multiple calls to the logger, and that kind of defeats the purpose 
of "one quick check."

Do you know of a way to actually do what Roedy asked?  Multiple 
variables and their names in a single statement?

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Terse code sought Roedy Green <see_website@mindprod.com.invalid> - 2012-03-24 12:32 -0700
  Re: Terse code sought Lew <noone@lewscanon.com> - 2012-03-24 14:50 -0700
  Re: Terse code sought Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-24 19:32 -0300
    Re: Terse code sought Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-03-24 21:14 -0700
      Re: Terse code sought markspace <-@.> - 2012-03-25 18:23 -0700
        Re: Terse code sought Roedy Green <see_website@mindprod.com.invalid> - 2012-03-25 20:28 -0700
          Re: Terse code sought markspace <-@.> - 2012-03-26 07:59 -0700
        Re: Terse code sought Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-26 07:04 -0300
          Re: Terse code sought markspace <-@.> - 2012-03-26 08:02 -0700
            Re: Terse code sought Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-03-26 09:57 -0700
            Re: Terse code sought Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-26 20:32 -0300

csiph-web