API Reference for Enthought Tool Suite 3.2.0
Display log messages gleaned from a log file plugin.
Mapping of LogRecord types to cell background and text colors:
cell_color_map = { Const('Debug') : Getattr(Name('wx'), 'WHITE'), Const('Info') : Getattr(Name('wx'), 'WHITE'), Const('Warning') : Getattr(Name('wx'), 'GREEN'), Const('Error') : Getattr(Name('wx'), 'RED'), Const('Critical') : Getattr(Name('wx'), 'RED') }
extra_view = View(Item('extra', style = 'readonly', show_label = False, editor = CodeEditor()), kind = 'popup', id = 'enthought.developer.tools.log_file.extra', width = 0.40000000000000002, height = 0.29999999999999999, resizable = True, scrollable = True)
log_file_table_editor = TableEditor(columns = [ TypeColumn(name = 'type', width = 0.10000000000000001, horizontal_alignment = 'center'), ObjectColumn(name = 'date', width = 0.14999999999999999, horizontal_alignment = 'center'), ObjectColumn(name = 'time', width = 0.14999999999999999, horizontal_alignment = 'center'), ObjectColumn(name = 'info', width = 0.59999999999999998, view = extra_view) ], auto_size = False, editable = False, edit_on_first_click = False, show_toolbar = False, filter_name = 'log_filter', selection_bg_color = 16503697, selection_color = 'black')
Log message level mapping:
log_level = { Const('Debug') : Const(0), Const('Info') : Const(1), Const('Warning') : Const(2), Const('Error') : Const(3), Const('Critical') : Const(4) }
The standard log types:
log_types = set([ 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL' ])
LogType = Enum('Debug', 'Info', 'Warning', 'Error', 'Critical')
text_color_map = { Const('Debug') : Getattr(Name('wx'), 'BLACK'), Const('Info') : Getattr(Name('wx'), 'BLACK'), Const('Warning') : Getattr(Name('wx'), 'BLACK'), Const('Error') : Getattr(Name('wx'), 'WHITE'), Const('Critical') : Getattr(Name('wx'), 'WHITE') }
view = LogFile()
| Local name | Refers to |
|---|---|
| Any | enthought.traits.trait_types.Any |
| Button | enthought.traits.trait_types.Button |
| CodeEditor | enthought.traits.ui.editors.code_editor.CodeEditor |
| Delegate | enthought.traits.trait_types.Delegate |
| DropFile | enthought.developer.features.feature_metadata.DropFile |
| Enum | enthought.traits.trait_types.Enum |
| File | enthought.traits.trait_types.File |
| FileEditor | enthought.traits.ui.editors.file_editor.FileEditor |
| HasPrivateTraits | enthought.traits.has_traits.HasPrivateTraits |
| HGroup | enthought.traits.ui.group.HGroup |
| Instance | enthought.traits.trait_types.Instance |
| Item | enthought.traits.ui.item.Item |
| List | enthought.traits.trait_types.List |
| ObjectColumn | enthought.traits.ui.table_column.ObjectColumn |
| Range | enthought.traits.trait_types.Range |
| sleep | time.sleep |
| spring | enthought.traits.ui.item.spring |
| Str | enthought.traits.trait_types.Str |
| TableEditor | enthought.traits.ui.editors.table_editor.TableEditor |
| TableFilter | enthought.traits.ui.table_filter.TableFilter |
| Thread | threading.Thread |
| View | enthought.traits.ui.view.View |
| wx | wx |
© Copyright 2002-2009 Enthought, Inc.