+2
-1
composer.json
+2
-1
composer.json
+83
-1
composer.lock
+83
-1
composer.lock
······
······+"url": "https://api.github.com/repos/contributte/logging/zipball/2cc959bcfbd05cf2946b6711432d14fc0deed418",
+6
-13
index.php
+6
-13
index.php
······// This where errors and exceptions will be logged. Make sure this directory exists and is writable.// Debugger::$strictMode = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED; // all errors except deprecated notices······Flight::route('/u/@handle:[a-z0-9\.]+/@rkey:[a-z0-9]+', function (string $handle, string $rkey): void {···Flight::route('/u/@handle:[a-z0-9\.]+(/@tab:[a-z]+)', function (string $handle, ?string $tab): void {···
······// This where errors and exceptions will be logged. Make sure this directory exists and is writable.// Debugger::$strictMode = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED; // all errors except deprecated notices······Flight::route('/u/@handle:[a-z0-9\.]+/@rkey:[a-z0-9]+', function (string $handle, string $rkey): void {···Flight::route('/u/@handle:[a-z0-9\.]+(/@tab:[a-z]+)', function (string $handle, ?string $tab): void {···
+49
-32
lib/bskyToucher.php
+49
-32
lib/bskyToucher.php
·········\updatePostCache($post->postId, $post->did, $post->content, $post->embedType, json_encode($post->embeds));·········\updateFeedCache($atUri, $feedData->value->displayName, $feedData->value->description, $feedData->value->avatar->ref->{'$link'}, $uriComponents->did);············
·········\updatePostCache($post->postId, $post->did, $post->content, $post->embedType, json_encode($post->embeds));·········\updateFeedCache($atUri, $feedData->value->displayName, $feedData->value->description, $feedData->value->avatar->ref->{'$link'}, $uriComponents->did);············+'thumb' => $this->getMediaUrl($authorData->pds, $authorData->did, $embeds->external->thumb->ref->{'$link'})
+3
-3
templates/_partials/post.latte
+3
-3
templates/_partials/post.latte
···-<a href="{$post->profileLink}"><img src="{$post->author->avatar}" alt="{$post->author->displayName}'s user icon" /></a>-<div class="displayName"><a href="{$post->profileLink}">{$post->author->displayName|noescape}</a></div>
···+<a href="{$post->author->profileLink}"><img src="{$post->author->avatar}" alt="{$post->author->displayName}'s user icon" /></a>+<div class="displayName"><a href="{$post->author->profileLink}">{$post->author->displayName|noescape}</a></div>
+1
-1
templates/feed.latte
+1
-1
templates/feed.latte
···-{include '_partials/feedHeader.latte', displayName: $feedName, description: $description, avatar: $avatar, creatorDisplay: $creatorDisplay, creatorHandle: $creatorHandle, creatorPds: $creatorPds, creatorDid: $creatorDid, feedAtUri: $feedAtUri}
···+{include '_partials/feedHeader.latte', displayName: $feedName, description: $description, avatar: $avatar, creatorDisplay: $feedAuthorName, creatorHandle: $feedAuthorHandle, creatorPds: $feedAuthorPds, creatorDid: $feedAuthorDid, feedAtUri: $feedAtUri}
-1
templates/profile.latte
-1
templates/profile.latte
···<button type="button" action="follow">follow</button> <button type="button" action="getNotifs">get notifs</button> <button type="button" action="starterPack">add to starter pack</button> <button type="button" action="list">add to list</button>
···<button type="button" action="follow">follow</button> <button type="button" action="getNotifs">get notifs</button> <button type="button" action="starterPack">add to starter pack</button> <button type="button" action="list">add to list</button>
+1
-1
vendor/composer/autoload_files.php
+1
-1
vendor/composer/autoload_files.php
···'6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php','37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
···'6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php','37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
+1
vendor/composer/autoload_psr4.php
+1
vendor/composer/autoload_psr4.php
···
+9
-1
vendor/composer/autoload_static.php
+9
-1
vendor/composer/autoload_static.php
···'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php','0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',-'d507e002f7fce7f0c6dbf1f22edcb902' => __DIR__ . '/..' . '/tracy/tracy/src/Tracy/functions.php','37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',······
···'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php','0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',+'d507e002f7fce7f0c6dbf1f22edcb902' => __DIR__ . '/..' . '/tracy/tracy/src/Tracy/functions.php','37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',······
+85
vendor/composer/installed.json
+85
vendor/composer/installed.json
···+"url": "https://api.github.com/repos/contributte/logging/zipball/2cc959bcfbd05cf2946b6711432d14fc0deed418",
+11
-2
vendor/composer/installed.php
+11
-2
vendor/composer/installed.php
·········
·········
+10
vendor/contributte/logging/.github/.kodiak.toml
+10
vendor/contributte/logging/.github/.kodiak.toml
+269
vendor/contributte/logging/.github/workflows/main.yaml
+269
vendor/contributte/logging/.github/workflows/main.yaml
···
···+composer-install: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable"+wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
+21
vendor/contributte/logging/LICENSE
+21
vendor/contributte/logging/LICENSE
···
···
+24
vendor/contributte/logging/Makefile
+24
vendor/contributte/logging/Makefile
···
···+vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases+vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases
+64
vendor/contributte/logging/composer.json
+64
vendor/contributte/logging/composer.json
···
···
+61
vendor/contributte/logging/src/AbstractLogger.php
+61
vendor/contributte/logging/src/AbstractLogger.php
···
···+return $this->directory . '/exception--' . @date('Y-m-d--H-i') . '--' . $hash . '.html'; // @ timezone may not be set
+41
vendor/contributte/logging/src/BlueScreenFileLogger.php
+41
vendor/contributte/logging/src/BlueScreenFileLogger.php
···
···+throw new InvalidStateException('Directory ' . $this->directory . ' is not found or is not directory.');
+74
vendor/contributte/logging/src/DI/SentryLoggingExtension.php
+74
vendor/contributte/logging/src/DI/SentryLoggingExtension.php
···
···
+86
vendor/contributte/logging/src/DI/SlackLoggingExtension.php
+86
vendor/contributte/logging/src/DI/SlackLoggingExtension.php
···
···
+85
vendor/contributte/logging/src/DI/TracyLoggingExtension.php
+85
vendor/contributte/logging/src/DI/TracyLoggingExtension.php
···
···+$builder->addDefinition($this->prefix('originalLogger'), clone $builder->getDefinition('tracy.logger'))
+10
vendor/contributte/logging/src/Exceptions/Logical/InvalidStateException.php
+10
vendor/contributte/logging/src/Exceptions/Logical/InvalidStateException.php
+10
vendor/contributte/logging/src/Exceptions/LogicalException.php
+10
vendor/contributte/logging/src/Exceptions/LogicalException.php
+30
vendor/contributte/logging/src/Exceptions/Runtime/Logger/SlackBadRequestException.php
+30
vendor/contributte/logging/src/Exceptions/Runtime/Logger/SlackBadRequestException.php
···
···
+8
vendor/contributte/logging/src/Exceptions/RuntimeException.php
+8
vendor/contributte/logging/src/Exceptions/RuntimeException.php
+38
vendor/contributte/logging/src/FileLogger.php
+38
vendor/contributte/logging/src/FileLogger.php
···
···+throw new InvalidStateException('Directory "' . $this->directory . '" is not found or is not directory.');+throw new InvalidStateException('Unable to write to log file "' . $file . '". Is directory writable?');
+22
vendor/contributte/logging/src/ILogger.php
+22
vendor/contributte/logging/src/ILogger.php
···
···
+44
vendor/contributte/logging/src/Mailer/FileMailer.php
+44
vendor/contributte/logging/src/Mailer/FileMailer.php
···
···+@file_put_contents($this->directory . '/tracy-mail-' . time() . '.txt', implode("\n\n", $parts));
+13
vendor/contributte/logging/src/Mailer/IMailer.php
+13
vendor/contributte/logging/src/Mailer/IMailer.php
+55
vendor/contributte/logging/src/Mailer/TracyMailer.php
+55
vendor/contributte/logging/src/Mailer/TracyMailer.php
···
···
+18
vendor/contributte/logging/src/NullLogger.php
+18
vendor/contributte/logging/src/NullLogger.php
···
···
+77
vendor/contributte/logging/src/SendMailLogger.php
+77
vendor/contributte/logging/src/SendMailLogger.php
···
···+if ($filemtime + $snooze < time() && (bool) @file_put_contents($this->directory . '/email-sent', 'sent')
+101
vendor/contributte/logging/src/Sentry/SentryLogger.php
+101
vendor/contributte/logging/src/Sentry/SentryLogger.php
···
···+$client = ClientBuilder::create($this->configuration[self::CONFIG_OPTIONS] + ['dsn' => $this->configuration[self::CONFIG_URL]])
+37
vendor/contributte/logging/src/Slack/Formatter/ColorFormatter.php
+37
vendor/contributte/logging/src/Slack/Formatter/ColorFormatter.php
···
···+public function format(SlackContext $context, Throwable $message, string $priority): SlackContext
+24
vendor/contributte/logging/src/Slack/Formatter/ContextFormatter.php
+24
vendor/contributte/logging/src/Slack/Formatter/ContextFormatter.php
···
···+public function format(SlackContext $context, Throwable $message, string $priority): SlackContext+$context->setText(':bangbang::bangbang::bangbang: Exception occured :bangbang::bangbang::bangbang:');
+54
vendor/contributte/logging/src/Slack/Formatter/ExceptionFormatter.php
+54
vendor/contributte/logging/src/Slack/Formatter/ExceptionFormatter.php
···
···+public function format(SlackContext $context, Throwable $exception, string $priority): SlackContext
+45
vendor/contributte/logging/src/Slack/Formatter/ExceptionPreviousExceptionsFormatter.php
+45
vendor/contributte/logging/src/Slack/Formatter/ExceptionPreviousExceptionsFormatter.php
···
···+public function format(SlackContext $context, Throwable $exception, string $priority): SlackContext
+33
vendor/contributte/logging/src/Slack/Formatter/ExceptionStackTraceFormatter.php
+33
vendor/contributte/logging/src/Slack/Formatter/ExceptionStackTraceFormatter.php
···
···+public function format(SlackContext $context, Throwable $exception, string $priority): SlackContext+$file->setValue('```Function: ' . $trace['function'] . "\nFile: " . $trace['file'] . ':' . $trace['line'] . '```');
+12
vendor/contributte/logging/src/Slack/Formatter/IFormatter.php
+12
vendor/contributte/logging/src/Slack/Formatter/IFormatter.php
+112
vendor/contributte/logging/src/Slack/Formatter/SlackContext.php
+112
vendor/contributte/logging/src/Slack/Formatter/SlackContext.php
···
···
+114
vendor/contributte/logging/src/Slack/Formatter/SlackContextAttachment.php
+114
vendor/contributte/logging/src/Slack/Formatter/SlackContextAttachment.php
···
···
+34
vendor/contributte/logging/src/Slack/Formatter/SlackContextField.php
+34
vendor/contributte/logging/src/Slack/Formatter/SlackContextField.php
···
···
+97
vendor/contributte/logging/src/Slack/SlackLogger.php
+97
vendor/contributte/logging/src/Slack/SlackLogger.php
···
···
+35
vendor/contributte/logging/src/UniversalLogger.php
+35
vendor/contributte/logging/src/UniversalLogger.php
···
···
+33
vendor/contributte/logging/src/Utils/Utils.php
+33
vendor/contributte/logging/src/Utils/Utils.php
···
···+public static function dumpException(Throwable $exception, string $file, ?BlueScreen $blueScreen = null): string+public static function captureException(Throwable $exception, string $file, ?BlueScreen $blueScreen = null): string