Skip to content

Commit

Permalink
Start updating Log\Log to use Configure.
Browse files Browse the repository at this point in the history
Remove many the legacy features like:

* Autoconfiguration of a file logger. You should remember to configure
  a logger if you want logging.
* Ability to add/modify logging levels. There is really no reason for
  this functionality to exist. It was primarily a BC work around for
  people logging random messages and wanting them to show up in
  different log files. Logging scopes accomplish this in a far more
  extensible manner.
* Removed the ability to log to undefined log levels. write() now
  returns false when you've logged to nothing.
* When using defined levels/scopes both the scope & level of a message
  must intersect with the loggers scope/message or the message will be
  ignored. This makes logging more strict, but more predicatable.
  • Loading branch information
markstory committed Sep 18, 2012
1 parent 9d60a27 commit 04d606d
Show file tree
Hide file tree
Showing 6 changed files with 215 additions and 474 deletions.
7 changes: 1 addition & 6 deletions lib/Cake/Log/Engine/BaseLog.php
@@ -1,9 +1,5 @@
<?php
/**
* Base Log Engine class
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand All @@ -12,12 +8,11 @@
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
* @package Cake.Log.Engine
* @since CakePHP(tm) v 2.2
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

namespace Cake\Log\Engine;

use Cake\Log\LogInterface;

/**
Expand Down
7 changes: 7 additions & 0 deletions lib/Cake/Log/Engine/FileLog.php
Expand Up @@ -36,6 +36,13 @@ class FileLog extends BaseLog {
*/
protected $_path = null;

/**
* The name of the file to save logs into.
*
* @var string
*/
protected $_file = null;

/**
* Constructs a new File Logger.
*
Expand Down

0 comments on commit 04d606d

Please sign in to comment.