CREATE TABLE pradolog
(
log_id INTEGER NOT NULL PRIMARY KEY,
level INTEGER,
category VARCHAR(128),
logtime VARCHAR(20),
message VARCHAR(255)
);
Exibir arquivo
Open project: pradosoft/prado
Method | Description | |
---|---|---|
__destruct ( ) | Destructor. | |
getAutoCreateLogTable ( ) : boolean | ||
getConnectionID ( ) : string | ||
getDbConnection ( ) : |
||
getLogTableName ( ) : string | ||
init ( $config ) | Initializes this module. | |
setAutoCreateLogTable ( $value ) | ||
setConnectionID ( $value ) | Sets the ID of a TDataSourceConfig module. | |
setLogTableName ( $value ) | Sets the name of the DB table to store log content. |
Method | Description | |
---|---|---|
createDbConnection ( ) : |
Creates the DB connection. | |
createDbTable ( ) | Creates the DB table for storing log messages. | |
processLogs ( $logs ) | Stores log messages into database. |
protected createDbConnection ( ) : |
||
return | the created DB connection |
protected createDbTable ( ) |
public getAutoCreateLogTable ( ) : boolean | ||
return | boolean | whether the log DB table should be automatically created if not exists. Defaults to true. |
public getConnectionID ( ) : string | ||
return | string | the ID of a {@link TDataSourceConfig} module. Defaults to empty string, meaning not set. |
public getDbConnection ( ) : |
||
return | the DB connection instance |
public getLogTableName ( ) : string | ||
return | string | the name of the DB table to store log content. Defaults to 'pradolog'. |
public init ( $config ) |
public setConnectionID ( $value ) |
public setLogTableName ( $value ) |