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/gamescenecontroller.py

    r796 r797  
    3737    from gamemodel import GameModel 
    3838    from parpg import PARPGApplication 
     39 
     40import logging 
     41 
     42logger = logging.getLogger('gamescenecontroller') 
    3943 
    4044class GameSceneController(ControllerBase): 
     
    136140                                           datetime.now().strftime( 
    137141                                           '%Y-%m-%d-%H-%M-%S'))) 
    138             print "PARPG: Saved:", screenshot_file 
    139142            self.engine.getRenderBackend().captureScreen(screenshot_file) 
     143            logger.info("PARPG: Saved: {0}".format(screenshot_file)) 
    140144        if(key_val == key.F10): 
    141145            # F10 shows/hides the console 
     
    314318    def nullFunc(self, userdata): 
    315319        """Sample callback for the context menus.""" 
    316         print userdata     
     320        logger.info(userdata) 
    317321 
    318322    def initTalk(self, npc_info): 
Note: See TracChangeset for help on using the changeset viewer.