| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
LilyPond has several loglevels, which specify how verbose the output on the console should be:
The loglevel can either be set with the environment variable
LILYPOND_LOGLEVEL or on the command line with the ‘--loglevel=...’
option.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
LilyPond has two different types of error and log functions:
Input
class provide logging functionality that prints the position of the message
in addition to the message.
flower/include/warn.hh file will provide logging functionality that
only prints out the message, but no location.
There are also Scheme functions to access all of these logging functions from scheme. In addition, the Grob class contains some convenience wrappers for even easier access to these functions.
The message and debug functions in warn.hh also have an optional
argument newline, which specifies whether the message should always
start on a new line or continue a previous message.
By default, progress_indication does NOT start on a new line, but rather
continue the previous output. They also do not have a particular input
position associated, so there are no progress functions in the Input class.
All other functions by default start their output on a new line.
The error functions come in three different flavors: fatal error messages,
programming error messages and normal error messages. Errors written
by the error () function will cause LilyPond to exit immediately,
errors by Input::error () will continue the compilation, but
return a non-zero return value of the LilyPond call (i.e. indicate an
unsuccessful program execution). All other errors will be printed on the
console, but not exit LilyPond or indicate an unsuccessful return code.
Their only differences to a warnings are the displayed text and that
they will be shown with loglevel ERROR.
If the Scheme option warning-as-error is set, any warning will be
treated as if Input::error was called.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| C++, no location | C++ from input location | |
|---|---|---|
| ERROR | error (), programming_error (msg), non_fatal_error (msg) | Input::error (msg), Input::programming_error (msg) |
| WARN | warning (msg) | Input::warning (msg) |
| BASIC | basic_progress (msg) | - |
| PROGRESS | progress_indication (msg) | - |
| INFO | message (msg) | Input::message (msg) |
| DEBUG | debug_output (msg) | Input::debug_output (msg) |
| C++ from a Grob | Scheme, music expression | |
| ERROR | Grob::programming_error (msg) | - |
| WARN | Grob::warning (msg) | (ly:music-warning music msg) |
| BASIC | - | - |
| PROGRESS | - | - |
| INFO | - | (ly:music-message music msg) |
| DEBUG | - | - |
| Scheme, no location | Scheme, input location | |
| ERROR | - | (ly:error msg args), (ly:programming-error msg args) |
| WARN | (ly:warning msg args) | (ly:input-warning input msg args) |
| BASIC | (ly:basic-progress msg args) | - |
| PROGRESS | (ly:progress msg args) | - |
| INFO | (ly:message msg args) | (ly:input-message input msg args) |
| DEBUG | (ly:debug msg args) | - |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by gub on July 13, 2020 using texi2html 1.82.