Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def PythonCard-0.8.1::log::Log::__init__ (   self  ) 

Initialize a Log instance.

Definition at line 109 of file log.py.

00109                          :
        """
        Initialize a Log instance.
        """
        if Log.instance is not None:
            raise RuntimeError, 'Only one instance of Log is allowed! use Log.getInstance() to get a reference to a Log'
    
        # The Log is initially disabled.

        self.enabled = 0

        self.created = 0

        #self.fileName = configuration.Configuration().getLogFileName()
        self.fileName = configuration.getLogFileName()
        self.logToStdout = configuration.getOption('logToStdout')

        # Enable all logging levels.

        self.errorEnabled = 1
        self.warningEnabled = 1
        self.debugEnabled = 1
        self.infoEnabled = 1
          
    def isEnabled( self ) :


Generated by  Doxygen 1.6.0   Back to index