Skip to content

Commit d041848

Browse files
committed
Removed psr/log support.
1 parent e254dd9 commit d041848

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

Clockwork/Request/Log.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
use Clockwork\Helpers\StackTrace;
55
use Clockwork\Helpers\StackFilter;
66

7-
use Psr\Log\LogLevel;
8-
use Psr\Log\LoggerInterface;
9-
107
// Data structure representing a log with timestamped messages
11-
class Log implements LoggerInterface
8+
class Log
129
{
1310
// Array of logged messages
1411
public $messages = [];

Clockwork/Request/LogLevel.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php namespace Clockwork\Request;
2+
3+
class LogLevel
4+
{
5+
const EMERGENCY = 'emergency';
6+
const ALERT = 'alert';
7+
const CRITICAL = 'critical';
8+
const ERROR = 'error';
9+
const WARNING = 'warning';
10+
const NOTICE = 'notice';
11+
const INFO = 'info';
12+
const DEBUG = 'debug';
13+
}

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
],
1414
"require": {
1515
"php": ">=5.6",
16-
"ext-json": "*",
17-
"psr/log": "1.* || ^2.0"
16+
"ext-json": "*"
1817
},
1918
"autoload": {
2019
"psr-4": {

0 commit comments

Comments
 (0)