-
Notifications
You must be signed in to change notification settings - Fork 35
icms_core_Logger
Raimondas Rimkevičius edited this page Mar 9, 2020
·
1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
Proxy logger class to add some compatibility stuff with older ICMS versions
- Class name: icms_core_Logger
- Namespace:
- Parent class: Monolog\Logger
public array $timers = []
Started timers list
- Visibility: public
static icms_core_Logger::instance()
Get a instance for default logger
- Visibility: public
- This method is static.
mixed icms_core_Logger::enableRendering()
Enable logger output
- Visibility: public
mixed icms_core_Logger::disableRendering()
Disable logger output rendering.
- Visibility: public
\ProcessableHandlerInterface[] icms_core_Logger::getDebugHandlersFromConfig()
Gets handlers from env variable DEBUG_TOOL
- Visibility: protected
mixed icms_core_Logger::log(mixed level, mixed message, array context)
- Visibility: public
- level mixed
- message mixed
- context array
mixed icms_core_Logger::disableLogger()
Disabling logger
- Visibility: public
mixed icms_core_Logger::startTime(string name)
Start a timer
- Visibility: public
- name string - <p>name of the timers</p>
mixed icms_core_Logger::stopTime(string name)
Stop a timer and prints to log
- Visibility: public
- name string - <p>name of the timers</p>
mixed icms_core_Logger::addQuery(string sql, string error, int errno)
Log a database query
- Visibility: public
- sql string - <p>SQL string</p>
- error string - <p>error message (if any)</p>
- errno int - <p>error number (if any)</p>
mixed icms_core_Logger::addBlock(string name, bool cached, int cachetime)
Log display of a block
- Visibility: public
- name string - <p>name of the block</p>
- cached bool - <p>was the block cached?</p>
- cachetime int - <p>cachetime of the block</p>
mixed icms_core_Logger::addExtra(string name, int msg)
Log extra info
- Visibility: public
- name string - <p>name</p>
- msg int - <p>message</p>
mixed icms_core_Logger::addDeprecated(string msg)
Marks as deprecated
- Visibility: public
- msg string - <p>Message/reason for deprecating</p>
mixed icms_core_Logger::handleError(int errorNumber, string message, string file, string line)
Error handling
- Visibility: public
- errorNumber int
- message string
- file string
- line string
string icms_core_Logger::sanitizePath(string path)
Sanitize path / url to file in erorr report
- Visibility: protected
- path string - <p>path to sanitize</p>
string icms_core_Logger::render(string output)
Output buffering callback inserting logger dump in page output
- Visibility: public
- output string
string icms_core_Logger::dump(string mode)
Prints the logger output data
- Visibility: public
- mode string
float icms_core_Logger::dumpTime(string name)
Gets the execution time of specific timer
- Visibility: public
- name string - <p>name of the counter</p>