Class Sylar_Logger

Description

Gestione Log del sistema.

La classe estende DataBase e dunque dipende da essa ma dipende anche da Sessione infatti viene usato un oggetto globale $SS che deve essere dichiarato. Nel sistema GVisit tale oggetto รจ dichiarato nel file di configurazione generale.

Located in /sylar/classes/common/system/Logger.php (line 42)


	
			
Method Summary
 Sylar_Logger __construct ([mixed $logLevel = SYLAR_LOG_LEVEL])
 void __destruct ()
 integer getLoggerLevelValue ()
 boolean logEvent (string $event, string $level)
 void setDataBaseConfig ([Sylar_DataBaseConfiguration $dbConfiguration = null])
 void setLogLevel ([string $levelName = SYLAR_LOG_LEVEL])
 void setLogSaveMethod ([mixed $logMethod = 'db'])
Methods
Constructor __construct (line 75)
Sylar_Logger __construct ([mixed $logLevel = SYLAR_LOG_LEVEL])
Destructor __destruct (line 80)
void __destruct ()
getDataBaseConfig (line 115)

Return Db Configuration for log it return the object with all database information

  • access: public
Sylar_DataBaseConfiguration getDataBaseConfig ()
getLoggerLevelValue (line 290)

Return the numeric log lovel

integer getLoggerLevelValue ()
getLogSaveMethod (line 304)
  • access: public
void getLogSaveMethod ()
logEvent (line 131)

save event in log

boolean logEvent (string $event, string $level)
  • string $event: codice breve della sezione a cui appartiene l'evento
  • string $level: il codice di livello di importanza dell'evento
setDataBaseConfig (line 96)

Set Logging into Db Set the class to log information into specified DataBase, if not specified it try to log into default Sylar DataBase

  • access: public
void setDataBaseConfig ([Sylar_DataBaseConfiguration $dbConfiguration = null])
setLogLevel (line 278)

Set the log level

void setLogLevel ([string $levelName = SYLAR_LOG_LEVEL])
  • string $levelName: the name ov the log level
setLogSaveMethod (line 294)
  • access: public
void setLogSaveMethod ([mixed $logMethod = 'db'])

Documentation generated on Thu, 24 Apr 2008 16:14:17 +0200 by phpDocumentor 1.3.0RC3