Re: Kohana Logs

Bharat Mediratta <[email protected]> Fri, 15 Feb 2013 17:03:34 -0800
Newsgroups gmane.comp.web.gallery.devel
Message-ID <CAESa+_k0o9QFXvTwbN2ND1A8sAFX9DEkmHTfZymTmCqPXW=ndg@mail.gmail.com>
A module should be able to do something like:

   Kohana_Config::instance()->set("log.log_threshold", "2");

As long as you do that sometime during the request lifetime it *should* work.
 I have't had a chance to test it.


On Fri, Feb 15, 2013 at 4:14 PM, Dave Moore <[email protected]> wrote:

>  Thanks,
> Is there a way for a module to override that setting temporally? I looked
> at the g2_import code to see how it was changed but could not see how.
> Two questions I guess.  If it can be overridden, can it be turned off and
> on or would it be always set as long as the module is installed? & How?
>
> Cheers!
>
>  On 2013/February/15 10:50 AM, Bharat Mediratta wrote:
>
> Yep, this is set in:
>
>  system/config/log.php:$config['log_threshold'] = 1;
>
>  Set the threshold to 2 to see alerts.  3 to see info, etc.
>
>
> On Thu, Feb 14, 2013 at 3:51 PM, Dave Moore <[email protected]> wrote:
>
>>  I see an example of the ‘alert’ log in the g2_import module:
>> Kohana_Log::add("alert", $msg);
>>
>> But in a module I’m developing I tried:
>> Kohana_Log::add("alert", "Some text”);
>>
>> It never shows but if I change it to error:
>> Kohana_Log::add("error", “some text”);
>> It works.
>>
>> Is there a level that is set to add alert messages to the log that I
>> can’t find?
>>
>>
>> ------------------------------------------------------------------------------
>> Free Next-Gen Firewall Hardware Offer
>> Buy your Sophos next-gen firewall before the end March 2013
>> and get the hardware for free! Learn more.
>> http://p.sf.net/sfu/sophos-d2d-feb
>> __[ g a l l e r y - d e v e l ]_________________________
>>
>> [ list info/archive --> http://gallery.sf.net/lists.php ]
>> [ gallery info/FAQ/download --> http://gallery.sf.net ]
>>
>
>
>
>
> ------------------------------------------------------------------------------
> The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
> is your hub for all things parallel software development, from weekly
> thought
> leadership blogs to news, videos, case studies, tutorials, tech docs,
> whitepapers, evaluation guides, and opinion stories. Check out the most
> recent posts - join the conversation now.
> http://goparallel.sourceforge.net/
> __[ g a l l e r y - d e v e l ]_________________________
>
> [ list info/archive --> http://gallery.sf.net/lists.php ]
> [ gallery info/FAQ/download --> http://gallery.sf.net ]
>

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/

__[ g a l l e r y - d e v e l ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]