Skip to content

Commit

Permalink
Merge pull request #564 from itsgoingd/remove-psr-log
Browse files Browse the repository at this point in the history
Removed psr/log support
  • Loading branch information
itsgoingd authored Feb 13, 2022
2 parents e254dd9 + d041848 commit 2058046
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Clockwork/Request/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
use Clockwork\Helpers\StackTrace;
use Clockwork\Helpers\StackFilter;

use Psr\Log\LogLevel;
use Psr\Log\LoggerInterface;

// Data structure representing a log with timestamped messages
class Log implements LoggerInterface
class Log
{
// Array of logged messages
public $messages = [];
Expand Down
13 changes: 13 additions & 0 deletions Clockwork/Request/LogLevel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php namespace Clockwork\Request;

class LogLevel
{
const EMERGENCY = 'emergency';
const ALERT = 'alert';
const CRITICAL = 'critical';
const ERROR = 'error';
const WARNING = 'warning';
const NOTICE = 'notice';
const INFO = 'info';
const DEBUG = 'debug';
}
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
],
"require": {
"php": ">=5.6",
"ext-json": "*",
"psr/log": "1.* || ^2.0"
"ext-json": "*"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 2058046

Please sign in to comment.