From f3f8793074ad70907a9597f310007624ffc0ea81 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Sat, 19 Jan 2013 22:12:15 +0100 Subject: [PATCH] change construct definition in Tlog --- core/composer.lock | 70 ++++++++++++++++++------------------ core/lib/Thelia/Log/Tlog.php | 17 +++++---- 2 files changed, 43 insertions(+), 44 deletions(-) diff --git a/core/composer.lock b/core/composer.lock index 2f95c421f..1d66ea0e0 100644 --- a/core/composer.lock +++ b/core/composer.lock @@ -163,17 +163,17 @@ }, { "name": "symfony/class-loader", - "version": "v2.1.6", + "version": "v2.1.7", "target-dir": "Symfony/Component/ClassLoader", "source": { "type": "git", "url": "https://github.com/symfony/ClassLoader", - "reference": "v2.1.6" + "reference": "v2.1.7" }, "dist": { "type": "zip", - "url": "https://github.com/symfony/ClassLoader/archive/v2.1.6.zip", - "reference": "v2.1.6", + "url": "https://github.com/symfony/ClassLoader/archive/v2.1.7.zip", + "reference": "v2.1.7", "shasum": "" }, "require": { @@ -182,7 +182,7 @@ "require-dev": { "symfony/finder": "2.1.*" }, - "time": "2012-12-06 10:00:55", + "time": "2013-01-09 08:51:07", "type": "library", "autoload": { "psr-0": { @@ -208,23 +208,23 @@ }, { "name": "symfony/config", - "version": "v2.1.6", + "version": "v2.1.7", "target-dir": "Symfony/Component/Config", "source": { "type": "git", "url": "https://github.com/symfony/Config", - "reference": "v2.1.6" + "reference": "v2.1.7" }, "dist": { "type": "zip", - "url": "https://github.com/symfony/Config/archive/v2.1.6.zip", - "reference": "v2.1.6", + "url": "https://github.com/symfony/Config/archive/v2.1.7.zip", + "reference": "v2.1.7", "shasum": "" }, "require": { "php": ">=5.3.3" }, - "time": "2012-12-11 10:40:22", + "time": "2013-01-09 08:51:07", "type": "library", "autoload": { "psr-0": { @@ -250,23 +250,23 @@ }, { "name": "symfony/console", - "version": "v2.1.6", + "version": "v2.1.7", "target-dir": "Symfony/Component/Console", "source": { "type": "git", "url": "https://github.com/symfony/Console", - "reference": "v2.1.6" + "reference": "v2.1.7" }, "dist": { "type": "zip", - "url": "https://github.com/symfony/Console/archive/v2.1.6.zip", - "reference": "v2.1.6", + "url": "https://github.com/symfony/Console/archive/v2.1.7.zip", + "reference": "v2.1.7", "shasum": "" }, "require": { "php": ">=5.3.3" }, - "time": "2012-12-13 17:42:00", + "time": "2013-01-17 15:20:05", "type": "library", "autoload": { "psr-0": { @@ -292,17 +292,17 @@ }, { "name": "symfony/dependency-injection", - "version": "v2.1.6", + "version": "v2.1.7", "target-dir": "Symfony/Component/DependencyInjection", "source": { "type": "git", "url": "https://github.com/symfony/DependencyInjection", - "reference": "v2.1.6" + "reference": "v2.1.7" }, "dist": { "type": "zip", - "url": "https://github.com/symfony/DependencyInjection/archive/v2.1.6.zip", - "reference": "v2.1.6", + "url": "https://github.com/symfony/DependencyInjection/archive/v2.1.7.zip", + "reference": "v2.1.7", "shasum": "" }, "require": { @@ -316,7 +316,7 @@ "symfony/yaml": "2.1.*", "symfony/config": "2.1.*" }, - "time": "2012-12-06 10:00:55", + "time": "2013-01-17 21:21:51", "type": "library", "autoload": { "psr-0": { @@ -342,17 +342,17 @@ }, { "name": "symfony/event-dispatcher", - "version": "v2.1.6", + "version": "v2.1.7", "target-dir": "Symfony/Component/EventDispatcher", "source": { "type": "git", "url": "https://github.com/symfony/EventDispatcher", - "reference": "v2.1.6" + "reference": "v2.1.7" }, "dist": { "type": "zip", - "url": "https://github.com/symfony/EventDispatcher/archive/v2.1.6.zip", - "reference": "v2.1.6", + "url": "https://github.com/symfony/EventDispatcher/archive/v2.1.7.zip", + "reference": "v2.1.7", "shasum": "" }, "require": { @@ -365,7 +365,7 @@ "symfony/dependency-injection": "2.1.*", "symfony/http-kernel": "2.1.*" }, - "time": "2012-12-06 10:00:55", + "time": "2013-01-11 00:31:43", "type": "library", "autoload": { "psr-0": { @@ -391,23 +391,23 @@ }, { "name": "symfony/http-foundation", - "version": "v2.1.6", + "version": "v2.1.7", "target-dir": "Symfony/Component/HttpFoundation", "source": { "type": "git", "url": "https://github.com/symfony/HttpFoundation", - "reference": "v2.1.6" + "reference": "v2.1.7" }, "dist": { "type": "zip", - "url": "https://github.com/symfony/HttpFoundation/archive/v2.1.6.zip", - "reference": "v2.1.6", + "url": "https://github.com/symfony/HttpFoundation/archive/v2.1.7.zip", + "reference": "v2.1.7", "shasum": "" }, "require": { "php": ">=5.3.3" }, - "time": "2012-12-14 21:03:29", + "time": "2013-01-11 00:31:43", "type": "library", "autoload": { "psr-0": { @@ -496,17 +496,17 @@ }, { "name": "symfony/routing", - "version": "v2.1.6", + "version": "v2.1.7", "target-dir": "Symfony/Component/Routing", "source": { "type": "git", "url": "https://github.com/symfony/Routing", - "reference": "v2.1.6" + "reference": "v2.1.7" }, "dist": { "type": "zip", - "url": "https://github.com/symfony/Routing/archive/v2.1.6.zip", - "reference": "v2.1.6", + "url": "https://github.com/symfony/Routing/archive/v2.1.7.zip", + "reference": "v2.1.7", "shasum": "" }, "require": { @@ -523,7 +523,7 @@ "symfony/yaml": "2.1.*", "doctrine/common": ">=2.2,<2.4-dev" }, - "time": "2012-12-11 10:40:22", + "time": "2013-01-09 08:51:07", "type": "library", "autoload": { "psr-0": { diff --git a/core/lib/Thelia/Log/Tlog.php b/core/lib/Thelia/Log/Tlog.php index 6fa2b03b1..4282b80c2 100644 --- a/core/lib/Thelia/Log/Tlog.php +++ b/core/lib/Thelia/Log/Tlog.php @@ -23,6 +23,7 @@ namespace Thelia\Log; use Thelia\Model\ConfigQuery; +use Psr\Log\LoggerInterface; /** * @@ -44,12 +45,12 @@ class Tlog Implements TlogInterface const VAR_SHOW_REDIRECT = "tlog_show_redirect"; // all level of trace - const TRACE = 1; - const DEBUG = 2; - const WARNING = 3; - const INFO = 4; - const ERROR = 5; - const FATAL = 6; + const TRACE = 100; + const DEBUG = 200; + const WARNING = 300; + const INFO = 400; + const ERROR = 500; + const FATAL = 600; const MUET = PHP_INT_MAX; // default values @@ -81,9 +82,7 @@ class Tlog Implements TlogInterface /** * */ - private function __construct() - { - } + private function __construct(){} /** *