Ignore:
Timestamp:
03/07/11 12:49:44 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

  • converted print statements to logging messages.
  • all of parpg's log messages go to the same file, but are differenciated by their class names
  • need to find a way to manipulate fife's log level
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/parpg/gui/hud.py

    r796 r797  
    2525from parpg.gui import drag_drop_data as data_drag 
    2626from actionsbox import ActionsBox 
     27 
     28import logging 
     29 
     30logger = logging.getLogger('hud') 
    2731 
    2832class Hud(object): 
     
    298302           @return: None""" 
    299303        self.stopActions() 
    300         print 'new game' 
     304        logger.info('new game') 
    301305     
    302306    def loadsave_close(self): 
     
    445449                element.text = str(value) 
    446450        else: 
    447             print 'Setting,', name, 'does not exist!' 
     451            logger.warning("setting, {0} does not exist!".format(name)) 
    448452     
    449453    def readyAction(self, ready_button): 
Note: See TracChangeset for help on using the changeset viewer.