• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/tcl-105/tcl_ext/tcllib/tcllib/modules/log/

Lines Matching defs:levels

15     namespace export levels lv2longform lv2color lv2priority 
22 # The known log-levels.
24 variable levels [list \
34 # Array mapping from all unique prefixes for log levels to their
91 # Map from log-levels to the commands to execute when a message
93 # all levels is '::log::Puts' which writes the message to either
102 foreach lv $levels {set cmdMap($lv) ::log::Puts}
105 # Map from log-levels to the channels ::log::Puts shall write
122 # upon their level. The following array stores a map from levels
138 # level the following array maps from levels to a numerical
142 # upon their levels.
157 # which levels are suppressed, i.e. may not be written.
177 # Internal static information. Map from levels to a string of
190 # log::levels --
192 # Retrieves the names of all known levels.
201 # A list containing the names of all known levels,
204 proc ::log::levels {} {
205 variable levels
206 return [lsort $levels]
231 return -code error "bad level \"$level\": must be [join [lreplace [levels] end end "or [lindex [levels] end]"] ", "]."
316 # Compares two levels (including unique abbreviations) with
321 # level1 The first of the levels to compare.
322 # level2 The second of the levels to compare.
330 # levels have the same priority. 1 signals that level1 has
395 # levels. The value 0 on the other hand
396 # unsuppresses the levels.
406 variable levels
419 foreach l $levels {
475 # Defines for all known levels with which command to write the
482 # cmd The command prefix to use for all levels.
492 variable levels
494 foreach l $levels {
528 # Defines for all known levels with which which channel
536 # chan The channel to use for all levels.
546 variable levels
548 foreach l $levels {
579 # Defines for all known levels the color to return for it in a
584 # color The color to use for all levels.
594 variable levels
596 foreach l $levels {
626 # Ignore messages for suppressed levels.
634 # Ignore messages for levels without a command
680 # Ignore messages for suppressed levels.
688 # Ignore messages for levels without a command
760 # Ignore messages for suppressed levels.
768 # Ignore messages for levels without a command
820 # Standard log command, writing messages and levels to
841 # Ignore levels without channel.
851 ## Initialization code. Disable logging for the lower levels by