CoolCMS API

OperationLogPolicy
in package

Read onlyYes
FinalYes

How much the participants write per operation (`params.1.operations.log` + `logThreshold`).

  • verbose: one line per root operation.
  • summary (the configured default): the request summary only, plus a line for an operation worth a look (failed/rejected, a contract violation, an unusual reset, or above one of the thresholds). The summary keeps the totals of every operation, logged or not.

A participant built by hand (tests) logs everything; the container passes the configured policy.

Table of Contents

Constants

SUMMARY  : string = 'summary'
VERBOSE  : string = 'verbose'

Properties

$slowMs  : int
$sqlQueries  : int
$unitOfWorkSize  : int
$verbose  : bool

Methods

__construct()  : mixed
getLevel()  : string

Constants

Properties

Methods

__construct()

public __construct([bool $verbose = true ][, int $slowMs = 250 ][, int $sqlQueries = 50 ][, int $unitOfWorkSize = 500 ]) : mixed
Parameters
$verbose : bool = true
$slowMs : int = 250

an operation slower than this (ms) is logged

$sqlQueries : int = 50

an operation with more SQL queries than this is logged

$unitOfWorkSize : int = 500

an operation leaving more managed entities than this is logged

On this page

Search results