On Mon, 17 Jan 2011 01:16:40 -0800 (PST), Fran <[email protected]> wrote:
> Hi,
> 
> I've been trying to enable logging in a production environment and
> there is no way. I've only achieved that in the log are written info
> messages.
> 
> I made this steps:
> 
> I've added in settings.yml:
> 
>     logging_enabled:        true
> 
> I've added in factories.yml:
> 
> prod:
>   logger:
>     class: sfAggregateLogger
>     param:
>       level: err
>       loggers:
>         sf_file_debug:
>           class: sfFileLogger
>           param:
>             level: err
>             file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log
> 
> When I execute the action that fails in the development environment
> the log has:
> 
> Jan 16 18:03:57 symfony [warning] {sfWebDebugLogger}  Warning at /
> home/..../actions/actions.class.php on line 58 (require_once(): http://
> wrapper is disabled in the server configuration by
> allow_url_include=0)
> (The error doesn't matter)
> 
> This error doesn't appear in the production log (when I execute the
> app in production environment)
> 
> It seems that in the production log only appears the messages with
> level info
> 
> Any idea?
> 
> Thank you!
> 
> PD: Sorry for my English

This is completly normal. The message is a warning and your prod
configuration only logs the error level. If you want to log warnings in the
prod environment you have to change the ``level: err`` line in your config.
I think it is ``level: warn`` for warnings but I'm not sure.

Regards

-- 
Christophe | Stof

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to