Good logging framework for ActionScript 3 projects - actionscript-3

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

Related

AIR Build Server Setup

I am at the point where I am running into incredibly long build times for my project and more projects to come. I would like to make a build server but I have not had any experience with them aside from downloading files from them as an end user.
My ideal setup is this: A GitHub where I can place my .fla file, classes and ANEs. The server sees this, compiles it, and allows me to test it remotely or hook into some debugger that lets me see stack traces and active variables at breakpoints and errors like Adobe Animate or Flash Builder.
Now I see there are GitHub plugins for Jenkins. I see there are questions referring to how to set one up with Flex/AIR. I come here with a few issues.
I am too far into my project to switch over from using Animate to something like Flash Develop or anything ADT related. The only thing I have found is how to take existing elements from my library in Animate and have them in a .swc for handling. However, this doesn't let me access existing elements in the Timeline and would rather not try to export/position/handle them in code (which is the only workaround that I see if this is not possible)
I run ANEs that are dependent on Google Play services and other Android specific libraries. Thus, I haven't been able to use the standard mobile debug launcher for AIR. I see Jenkins has some specific abilities for Android. Is it possible to somehow use this to give me a proper window for testing? I am thinking that I would need to run their emulator after compiling everything but I am unsure if there is a more efficient method or if it would even work.
I have never worked with Jenkins before or any other tools capable of automating tasks. Any step by step explanations is appreciated if you have the time.

Standalone actionscript interpreter?

I want to to play around with Actionscript, mostly to compare the language with Javascript (I'm interested in the type system). Is there a straightforward way to do that or do I need to also install Flash or something similar? I'd prefer something that works on Linux but Windows-only is fine too.
Basically, I want to know if there is something for Actionscript that is analogous to v8/NodeJS or Rhino for Javascript, where you can run JS scripts directly (using console.log for output) without having to use a browser, create an HTML page, etc.
There is an amazing online tool capable of compiling Actionscript 3.0, this will aid your investigation of the language!
http://wonderfl.net/
As3Eval also is a good tool. Play around with the demo to get a feel for it.
It's windows only, but download Java, then install FlashDevelop : http://www.flashdevelop.org/
It'll download the flex sdk and everything you'll need to get started.
You'll need flash player to see your tests, and normally the debug player (take the standalone), which you can download here: http://www.adobe.com/support/flash player/downloads.html
As #neil says, you can also use wonderfl to test directly online, though obviously the experience won't be the same as a full ide.
You should be able to develop on Linux directly if you want to install flash builder (eclipse) but it's not free

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.

Real time console output in application via trace

Is it somehow possible to output the traces in a deployed application to a display element?
I'm aware of the debug deploy in Flash Builder, but unfortunately I can't convince my iPad to work with that, so a real time trace output in my application would be really great.
Edit: On second thought, a full console output would probably be best. The flash console kostik suggested looks pretty good, so making it display the console output would be ideal.
Highly recomend monsterdebugger and flash-console however sometimes you just need to integration offered by an ide. Flash develop has some nice debugging features however I have come to love Intellij Idea's new features for flash debugging. Here is a peek of some recent gems http://blogs.jetbrains.com/idea/2011/12/features-of-flex-debugger/
http://code.google.com/p/flash-console/

Is there any logging library (ex. log4j) in 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.