Skip to content

AppsDevTeam/error-logger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 

Repository files navigation

ErrorLogger

Sends more info about the error than Tracy\Logger. Moreover, it can send multiple errors not only the first.

Installation

composer require adt/error-logger

Place this to your bootstrap.php after calling $configurator->enableDebugger() and before calling $configurator->createContainer():

$logger = \ADT\ErrorLogger::install($email = 'errors@example.com', $maxEmailsPerDay = 10, $maxEmailsPerRequest = 10);

and this after calling $configurator->createContainer():

if ($logger) {
	$logger->setup($container);
}

Sensitive fields:

You can specify keys of array, which will be hidden in POST dump.

Example:

$logger = \ADT\ErrorLogger::install(
	'errors@example.com',
	10,
	10,
	$sensitiveFields = [
		'password',
	]
);

POST dump:

POST:array (4)
   username => "my_username" (11)
   password => "*****" (5)
   login => "Sign in" (7)
   _do => "signForm-submit" (15)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages