Setting a log level?

3 views
Skip to first unread message

Leo Soto M.

unread,
Feb 25, 2008, 7:32:25 AM2/25/08
to flash-th...@googlegroups.com
Hi!,

I discovered Thunderbolt recently and played with it a bit: It looks cool! :)

The only thing I have not be able to do is to figure out how to set a
log level threshold. The idea is to avoid flooding the firebug console
once the application is on production. Is there a way to do this? Or
should I use the Flex Logging Framework integration?

--
Leo Soto M.
http://blog.leosoto.com

sec...@gmail.com

unread,
Feb 25, 2008, 8:13:48 AM2/25/08
to flash-thunderbolt
Hi Leo,

you don't need to implement the Flex Logging Framework for this issue.
Set the property called "hide" to true, which stops the output to the
Firebug console, using the following line of code:

// stop logging
Logger.hide = true;
// resume logging
Logger.hide = false;

-Jens (aka sectore)
http://www.websector.de/blog/

Leo Soto M.

unread,
Feb 25, 2008, 8:35:50 AM2/25/08
to flash-th...@googlegroups.com
On Mon, Feb 25, 2008 at 10:13 AM, sec...@gmail.com <sec...@gmail.com> wrote:
>
> Hi Leo,
>
> you don't need to implement the Flex Logging Framework for this issue.
> Set the property called "hide" to true, which stops the output to the
> Firebug console, using the following line of code:
>
> // stop logging
> Logger.hide = true;
> // resume logging
> Logger.hide = false;

Oh, right. But that does not allow me to say "Stop logging anything
below the WARNING level".

sec...@gmail.com

unread,
Feb 25, 2008, 8:48:04 AM2/25/08
to flash-thunderbolt
Leo,

that's right. At the latest version of the ThunderBoltAS3 you can't
stop the output for different log levels.

-Jens (aka sectore)
http://www.websector.de/blog/

On Feb 25, 2:35 pm, "Leo Soto M." <leo.s...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages