Is there any logging library (ex. log4j) in actionscript 3 - actionscript-3

I am a new as3 developer. Using trace method can help to print messages to the output pane of flash ide. However, in some situations, we want the messages fewer. I have used the Log4j library in java that supports choice a log level for the specific package/class.
If you have any information about logging in actionscript 3, please share it.

Always first check the already posted questions
Logging API for AS3

Hi here are a few that I know of (some not included in previous link). As you can see there are quite a few so it's just a case of finding which one fits your style the best
AS3 Commons logging
Spicelib logging framework
Thunderbolt
flashlogger
SOS logging platform
Anthropod logging
Peanut butter logger
LuminicBox logging
Alcon logging
Monster Debugger debugging and logging tool
Xray debugging and logging (may have been abandoned)
Apologises to anyone I've missed, feel free to add on the end.

Related

Display Flash Debug Log to a console

I am debugging my flash application, what is the best way to read the trace log from a non browser ? I want to be able to read in a C# application.
Any suggestions ?
Regards
Adobe Scout, Flash, and Monster Debugger call all report debug information from a flash app running in a browser and provide excellent debugging features. The flash debug player sends logging info to a flashlog.txt which you could read with a C# app if that's really what you wanted to do.
There's also the ExternalInterface class.

Used Code Plugin in Eclipse

I tried to analyze a swing application. It's an old project and it has been growing over years, so it's very hard to read the code. Now we should redesign the application.
Now I'm looking for an Eclipse plugin which could me support to understand this application. Here what kind of plugin I'm looking for:
start application from Eclipse in debug mode
I run in the application to a point
I start the record in Eclipse plugin
I run some kind of business logic in the application
I stop the record
the tool shows me, which code is used or not during the record
Does someone know if this kind of plugin exists?
Cheers
Julia
Not a specific plugin, but you can get something what you want by smartly placing breakpoints:
For example to find where the action listener code is for a button, set a break point in the ActionEvent constructor just before you press the button. Then you can step forward until you get to the listener.
You could also use VisualVM (or other profiler) to do CPU sampling while you take your action and then look in which code the CPU time was spent (in the EDT for the Swing GUI specifically).
It sounds like a coverage tool that can be switched on and off at runtime. I don't think this is possible with Emma or Cobertura; best guess is to use these for unit tests (or small test applications that only use partial functionality) and hide any unused types to get partial views. But that may not work well when you want to understand GUI actions and responses.
Even if it is not exactly part of your question I would recommend to have a look into the X-Ray plugin which helped me a lot with a legacy application.
Oh, and Eclipsecolorer Profiler helped... but the project is not active any more.

Handling Policy based exception using MS Entlib 5.0

I would want to learn about MS Entlib 5.0. Frankly I have no idea what it is. Please provide me the links to start exploring. Then I Would have to evaluate whether the following requirements can be met using MS Entlib 5.0
1.Policy based exception handling & logging into both file and DB
2.Capability to enable detailed logging through trace/debug.
3Capability to overwrite business exception raised from stored proc or BO with a localized exception message for UI display
Please provide your valuable inputs on the above requirements.
Thanks in Advance,
Manasa
Manasa, EntLib can help with all 3 scenarios you inquired about.
EntLib is a collection of pluggable application blocks that address cross-cutting concerns, such as logging, exception management, data access, data validation etc. EntLib is configuration-driven (supporting both external configuration sources and programmatic config via fluent interface). It's a mature library which is currently in its 5th release and is built by Microsoft patterns & practices group.
I recommend you start with the Enterprise Library Developer's Guide, in particular Chapters 1, 3 and 4. Then proceed with the Hands-On Labs. Based on your requirements, you would want to explore the Logging and Exception Handling set of exercises.
Additional resources can be found at:
MSDN EntLib Dev Center is the home page where all final releases and documentation can be
found.
EntLib Community Site - includes preview releases, ongoing work, community forum, issue database and other useful resources.

Enterprise Library Exception Handling application blocks

Where can I find some good examples on
1) How to configure Enterprise Library Exception Handling application blocks and
2) How to Log an exception error messages to a text file
(I am using VS2008 asp.net3.5, C# to develop a web application
and uses Enterprise library 4.1 for Exception Handling and Error logging )
Thank you all in advance
Take a look at the hands-on labs for Entlib 4.1. They include lots of examples on how to use the blocks, including the exception block.
As mentioned, The Hands on Labs are a good place to start. You could also take a look at the Quick Starts. When you install the source code you have the option of installing the Quick Starts. There is an ExceptionHandlingWithLoggingQuickStart project there that you would probably find useful.

Good logging framework for ActionScript 3 projects

I'd like to found some logging framework for AS3. For now I use trace() and debug version of Flash Player, but I'm looking something that can be enabled without having debug version installed?
Also, if you just want to view trace output with DebuggingPlayer that's no problem - download a program called "Vizzy Flash Tracer", it's just a proxy that listens for output from .swfs and displays it, with filtering options built in. Very useful, it's saved my ass many times!
Get it here: http://code.google.com/p/flash-tracer/
There are more then a couple of logging frameworks.
I really like 2
as3commons logging
MonsterDebugger
I use them both in projects.
Good luck