[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/vendor/aura/sql/src/Profiler/ -> ProfilerInterface.php (summary)

This file is part of Aura for PHP.

License: https://opensource.org/licenses/MIT MIT
File Size: 110 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ProfilerInterface:: (9 methods):
  setActive()
  isActive()
  getLogger()
  getLogLevel()
  setLogLevel()
  getLogFormat()
  setLogFormat()
  start()
  finish()


Interface: ProfilerInterface  - X-Ref

Interface to send query profiles to a logger.

setActive($active)   X-Ref
Enable or disable profiler logging.

param: bool $active

isActive()   X-Ref
Returns true if logging is active.

return: bool

getLogger()   X-Ref
Returns the underlying logger instance.

return: \Psr\Log\LoggerInterface

getLogLevel()   X-Ref
Returns the level at which to log profile messages.

return: string

setLogLevel($logLevel)   X-Ref
Level at which to log profile messages.

return: null
param: string $logLevel A PSR LogLevel constant.

getLogFormat()   X-Ref
Returns the log message format string, with placeholders.

return: string

setLogFormat($logFormat)   X-Ref
Sets the log message format string, with placeholders.

return: null
param: string $logFormat

start($function)   X-Ref
Starts a profile entry.

return: null
param: string $function The function starting the profile entry.

finish($statement = null, array $values = [])   X-Ref
Finishes and logs a profile entry.

return: null
param: string $statement The statement being profiled, if any.
param: array $values The values bound to the statement, if any.



Generated: Tue Jan 21 05:10:11 2025 Cross-referenced by PHPXref 0.7.1