[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you get hold of --loglevel value from Scheme

From: Reinhold Kainhofer
Subject: Re: How do you get hold of --loglevel value from Scheme
Date: Wed, 12 Oct 2011 18:10:25 +0200
User-agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.1; i686; ; )

Am Montag, 10. Oktober 2011, 01:12:45 schrieb Ian Hulin:
> Hi all,
> Before the new loglevel option was introduced you had to do
> (ly:get_option 'verbose) from scheme to check whether you wanted to
> output extra stuff.  Now that --verbose is deprecated in favour of
> --loglevel=DEBUG, what's the non-deprecated way of coding this when
> it's _not_ just to output a message (where you can use ly:debug)? For
> example
> (if (ly:get_option 'verbose)
>   (set %load-hook (lambda (filename)
>                   (ly:message ( _ "\t[Loading ~a] ...\n") filename))))
> I need a scheme equivalent to is_loglevel(DEBUG) in C++.


Notice, however, that the 'verbose option is also initialized to (ly:verbose-
output?), so the above should work just as well (except if the loglevel is 
somehow changed later on).

Reinhold Kainhofer, address@hidden,
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 *, DVR: 0005886
 * LilyPond, Music typesetting,

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]