XoopsObjectHandler | --Xbs_logLoggerHandler
To use this class do the following: include_once(XOOPS_ROOT_PATH."/modules/xbs_log/include/defines.php"); $myLogger =& xoops_getmodulehandler('Logger',XBSLOG_DIR); $myLogger->setLogName("<name of logger>"); //NB limited to 10 characters $stage = "start"; //NB stage tag limited to 10 characters $processMsg = "Some message" //NB message limited to 255 characters $myLogger->log($stage,$processMsg);
Xbs_logLoggerHandler Xbs_logLoggerHandler( @XoopsDb &$db)
string floatMtimeToDate( double $mTime)
string getFname( )
array getLogEntries( int $start, int $limit)
int getRowsNum( )
void log( string $stage, string $processMsg)
string mtimeToDate( string $mTimeStr)
real mtimeToFloat( string $mTimeStr)
This is only required because php4 does not support microtime(true) which isn't available until php5
void readLogToDB( )
void setLogName( [string $logName = 'XBS'])