Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 4 and Version 5 of Logging


Ignore:
Timestamp:
2012-10-05T08:35:01Z (7 years ago)
Author:
Vojtech Horky
Comment:

Write section about changing log level at boot-time

Legend:

Unmodified
Added
Removed
Modified
  • Logging

    v4 v5  
    3434|| `LVL_DEBUG2` || More detailed debugging message. ||
    3535
     36By default, messages with level `LVL_NOTE` and above (i. e. warning and errors) are printed. To see the debugging messages, the user has to enable them: see below how to increase the verbosity level at boot-time and at run-time.
     37
    3638
    3739== Going through existing logs ==
     
    5052
    5153
    52 == Changing reported level at boot time ==
     54== Changing reported level at boot-time ==
    5355
    5456The following currently works only for GRUB-based platforms.
    5557
    56 TODO - logger arguments
     58To change the default reporting level, simply add its name (e. g. `fatal` or `debug2`) after the `logger` module load in the GRUB.
     59
     60'''Example (making default reporting level less verbose)''': append the word `warn` to the logger module line once the GRUB menu appears (use `e` to enter the edit mode).
     61{{{
     62#!html
     63<div class="code"><pre>module /boot/logger /boot/logger <b>warn</b></pre></div>
     64}}}
     65Then use `F10` to boot HelenOS.
     66
     67It is also possible to change reporting level of an individual log. Simply write the log name and append to it the desired level. This can be repeated for more logs.
     68
     69'''Example (making tester very verbose)''': change the logger line to the following.
     70{{{
     71#!html
     72<div class="code"><pre>module /boot/logger /boot/logger <b>tester=debug2</b></pre></div>
     73}}}
     74
     75Both possibilities can be combined. For example, it is possible to set the default reporting level to errors only and only make several (problematic) drivers more verbose.
     76
    5777
    5878== Changing reported level at run-time ==