
|
If you were logged in you would be able to see more operations.
|
|
|
Archetype
Created: 29/Jan/08 08:58 PM
Updated: 18/Jun/08 10:36 AM
|
|
| Component/s: |
None
|
| Affects Version/s: |
0.1.0,
0.1.5
|
| Fix Version/s: |
0.8.0-beta,
0.8.0
|
|
|
You can define a Log format prepending to log (the most useful may be the Objectand method called) and different level of logging for everything from a package to a Class in Java.
What about doing this in JS ?
|
|
Description
|
You can define a Log format prepending to log (the most useful may be the Objectand method called) and different level of logging for everything from a package to a Class in Java.
What about doing this in JS ? |
Show » |
|
I've modified the FirebugLogger a bit in order to prepend the component and function name in bracket before the logging itself.
So this functionality works already very well with Components :) !
Archetype.Class.create already add the method name in each function but cannot know the class name in it's current form. Prototype Class.create would have to be proxied in order to do the same thing. Im' looking for a way that gives an optional argument in Archetype.Class.create and Class.create
Having a full Log4J like interface, even with "basic" classes can be implemented quite easily, you'll just have to store the class name and the function name in the function itself. However, we'll have to add some common code between loggers, and probably some new concept, like "log filters" and "log formatters" in order to have something quite perfect :)