Re: Kohana Logs

Dave Moore <[email protected]> Fri, 15 Feb 2013 17:14:36 -0700
Newsgroups gmane.comp.web.gallery.devel
Message-ID <[email protected]>
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] 
> <mailto:[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 ]