uawdijnntqw1x1x1
IP : 216.73.216.8
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
.
/
vendor
/
.
/
bin
/
..
/
verbb
/
base
/
src
/
BaseHelper.php
/
/
<?php namespace verbb\base; use Craft; use craft\log\MonologTarget; use Monolog\Formatter\LineFormatter; use Psr\Log\LogLevel; abstract class BaseHelper { // Public Methods // ========================================================================= public static function registerModule(): void { $moduleId = 'verbb-base'; if (!Craft::$app->hasModule($moduleId)) { Craft::$app->setModule($moduleId, new Base($moduleId)); Craft::$app->getModule($moduleId); } } public static function setFileLogging(string $pluginHandle, array $targetOptions = []): void { // Check that dispatcher exists, to avoid error when testing, since this is a bootstrapped module. // https://github.com/verbb/verbb-base/pull/1/files if ($dispatcher = Craft::getLogger()->dispatcher) { $dispatcher->targets[$pluginHandle] = new MonologTarget(array_replace_recursive([ 'name' => $pluginHandle, 'categories' => [$pluginHandle], 'level' => LogLevel::INFO, 'allowLineBreaks' => true, 'maxFiles' => 10, 'logVars' => ['_GET', '_POST'], 'formatter' => new LineFormatter( format: "%datetime% [%level_name%] %message%\n", dateFormat: 'Y-m-d H:i:s', allowInlineLineBreaks: true, ), ], $targetOptions)); } } }
/srv/users/craft4/apps/craft4-newsite-space/./vendor/./bin/../verbb/base/src/BaseHelper.php