PHP code example of vrtak-cz / newrelic-tracy
1. Go to this page and download the library: Download vrtak-cz/newrelic-tracy library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vrtak-cz / newrelic-tracy example snippets
$logLevel = [ // default (NULL means default)
\Tracy\Logger::CRITICAL,
\Tracy\Logger::EXCEPTION,
\Tracy\Logger::ERROR,
];
$appName = 'PHP Application'; // default (NULL means default)
$license = 'your_licence_key';
\VrtakCZ\NewRelic\Tracy\Bootstrap::init($logLevel, $appName, $license); // all parameters are optional