Hi,
The below is also a forum topic (http://www.symfony-project.org/forum/index.php?t=rview&goto=51248&th=12762#msg_51248), but it feels like a bug to me. Just to be sure I created a ticket. If I did something wrong, I apologize for the false ticket.
If I do in Symfony 1.1 beta 3 and 4:
sfContext::getInstance()->getLogger()->log('Log level: '.sfContext::getInstance()->getLogger()->getLogLevel(), 6);
I get in the log:
Log level: 7
But if I pass 7 (debug) instead of 6 (info) to the log() method as display level, nothing is written to the log. Why is that? Of course the result is the same with the info() and debug() methods of sfLogger. Using the latter displays nothing, info() does.
So the loglevel seems to be info, however, getLogLevel() displays 7, which means debug.
What's wrong .... anyone?
factories.yml
logger:
class: sfAggregateLogger
param:
level: debug
loggers:
sf_web_debug:
class: sfWebDebugLogger
param:
condition: %SF_WEB_DEBUG%
xdebug_logging: true
sf_file_debug:
class: sfFileLogger
param:
file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log
settings.yml
dev:
.settings:
error_reporting: <?php echo (E_ALL | E_STRICT)."\n" ?>
web_debug: on
cache: off
no_script_name: off
etag: off
logging_enabled: on