[ 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: 106 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(bool $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(string $logLevel)   X-Ref
Level at which to log profile messages.

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

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

return: string

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

return: void
param: string $logFormat

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

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

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

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



Generated: Tue Apr 1 05:10:01 2025 Cross-referenced by PHPXref 0.7.1