config/global/logging.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Feb 04 00:11:56 2010 +0100 (2010-02-04)
changeset 1801 ac0755f0e6ab
parent 896 c30837b79ce0
child 2484 d1a8c2ae7946
permissions -rw-r--r--
config: re-order the log entries inthe menuconfig
     1 # Options specific to logging
     2 
     3 comment "Logging"
     4 
     5 choice
     6     bool
     7     prompt "Maximum log level to see:"
     8     default LOG_INFO if !DEBUG_CT
     9     default LOG_DEBUG if DEBUG_CT
    10 
    11 config LOG_ERROR
    12     bool
    13     prompt "ERROR"
    14     help
    15       The build will be silent.
    16       Only if there is an error will you see a message.
    17 
    18 config LOG_WARN
    19     bool
    20     prompt "WARN"
    21     help
    22       The same as above, plus warnings.
    23 
    24 config LOG_INFO
    25     bool
    26     prompt "INFO"
    27     help
    28       The same as above, plus informational messages (main steps).
    29 
    30 config LOG_EXTRA
    31     bool
    32     prompt "EXTRA"
    33     help
    34       The same as above, plus extra messages (sub-steps).
    35 
    36 config LOG_ALL
    37     bool
    38     prompt "ALL"
    39     help
    40       The same as above, plus all components build messages (very noisy!).
    41 
    42 config LOG_DEBUG
    43     bool
    44     prompt "DEBUG"
    45     help
    46       The same as above, plus lots of crosstool-NG debug information.
    47 
    48 endchoice
    49 
    50 config LOG_LEVEL_MAX
    51     string
    52     default "ERROR"   if LOG_ERROR
    53     default "WARN"    if LOG_WARN
    54     default "INFO"    if LOG_INFO
    55     default "EXTRA"   if LOG_EXTRA
    56     default "ALL"     if LOG_ALL
    57     default "DEBUG"   if LOG_DEBUG
    58 
    59 config LOG_SEE_TOOLS_WARN
    60     bool
    61     prompt "Warnings from the tools' builds"
    62     default n
    63     depends on ! LOG_ERROR
    64     help
    65       Treat warnings from the different tools as crosstool-NG warnings.
    66       If you say 'y' here, then those warnings will be prefixed with
    67       '[WARN ]' instead of the default '[ALL  ]'.
    68 
    69       You can safely say 'n' here. Those warnings will anyway be
    70       recorded in the log file (provided you configured one).
    71 
    72       Tools error will always be logged as crosstool-NG errors.
    73 
    74 config LOG_PROGRESS_BAR
    75     bool
    76     prompt "Progress bar"
    77     default y
    78     depends on ! LOG_ALL && ! LOG_DEBUG
    79     help
    80       If you say 'y' here, you'll be able to see the elapsed time.
    81       
    82       As a bonus, you'll also get a rotating bar (/-\|) showing you
    83       that the build is not stalled (the bar rotates 1/4 every 10 lines
    84       of components build log).
    85 
    86       Note that the elapsed time can stall for a little while if a
    87       component has long commands, as the elapsed time is only updated
    88       each line.
    89 
    90 config LOG_TO_FILE
    91     bool
    92     prompt "Log to a file"
    93     default y
    94     help
    95       Save *full* logs to a file. Even log levels you didn't specify above
    96       will be available in this file. The log file will be named build.log
    97       and stored in the toolchain prefix dir (set above).
    98 
    99       Definitely, say Y.
   100 
   101 config LOG_FILE_COMPRESS
   102     bool
   103     prompt "Compress the log file"
   104     default y
   105     depends on LOG_TO_FILE
   106     help
   107       Compress the log file once the toolchain is successfully built.