|
List Info
Thread: Help with the Logger
|
|
| Help with the Logger |
  United Kingdom |
2007-05-02 07:17:44 |
|
There are a few levels of logging, 'debug, info, warn, error, fatal'.
When I log like so...
_global.Xray.xrayLogger.debug("debug = ", [n]); _global.Xray.xrayLogger.error("error = ", [n]); _global.Xray.xrayLogger.warn("warn = ", [n]);
It makes no difference whether I use any of these methods, they all trace out in the window no matter which radio button I select
which makes categorising them useless.
Is this a bug, am I doing something wrong?
I get this output
(71) debug = 0: 20 20 (72) error = 0: 20 20 (72) warn = 0: 20 20
Also, why are the amounts for 'n' which is an object prop repeated twice?
Any ideas, cheers, MaTT
|
| Re: Help with the Logger |

|
2007-05-02 08:01:15 |
|
Hey MaTT, I have to apologize - right now, you're right, they radio buttons only work when you do it a certain way. To explain the *way* is too difficult and wasn't meant to be that way anyway. So, I'm sorry about that, but at least you do get the level.
As for *why* it prints out that way, it's because Xray is giving you the hash name. It just so happens that the hash name and it's value are the same.
So, if I had this:
var obj:Object = new Object();
obj["john"] = "john";
it would trace out something like this
(72) debug = john john
It looks like you have an array though, since it's showing "0: 20" - so the actual value of that index in the array is an object, and it's hash reference is "20" and so is it's value.
hth,
On 5/2/07, matthew muller < matt_b_muller hotmail.com">matt_b_muller hotmail.com> wrote:
Hi, I am using Xray for the first time with the mxp file and the Flex interface.
There are a few levels of logging, 'debug, info, warn, error, fatal'.
When I log like so...
_global.Xray.xrayLogger.debug("debug = ", [n]); _global.Xray.xrayLogger.error("error = ", [n]); _global.Xray.xrayLogger.warn("warn = ", [n]);
It makes no difference whether I use any of these methods, they all trace out in the window no matter which radio button I select
which makes categorising them useless.
Is this a bug, am I doing something wrong?
I get this output
(71) debug = 0: 20 20 (72) error = 0: 20 20 (72) warn = 0: 20 20
Also, why are the amounts for 'n'; which is an object prop repeated twice?
Any ideas, cheers, MaTT
_______________________________________________ xray mailing list osflash.org">xray osflash.org
http://osflash.org/mailman/listinfo/xray_osflash.org
-- [ JPG ]
|
[1-2]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|