|
FabricationConsole
FabricationConsole - Fabrication AIR debugger utility.
Featured IntroductionFabrication Console is AIR based application for debugging & developer support for fabrication based applications. Details
Console is divided into three parts:
Flow consoleTo enable flow console logging from your application you have to override fabricationLoggerEnabled method in your application ( module ) main class ( fabricator ): Example.as <fabrication:FlexHaloApplication
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:fabrication="http://puremvc.org/utilities/fabrication/2010"
>
<mx:Script>
<![CDATA[
import shell.controller.FabricationRoutingDemoShellStartupCommand;
override public function getStartupCommand():Class {
return FabricationRoutingDemoShellStartupCommand;
}
override public function get fabricationLoggerEnabled():Boolean {
return true;
}
]]>
</mx:Script>
</fabrication:FlexHaloApplication>
Log consoleTo use custom loggins you have to create Logger instance and add console channel to it: var logger:Logger = Log.getLogger( "myLogger" ); logger.addChannel( FabricationLoggerChannel.getInstance() ); then, you can log messages using five levels ( wich then can be filtered in Log console ) or inspect object: logger.debug( "debug message" ); logger.info( "debug message" ); logger.warn( "debug message" ); logger.error( "debug message" ); logger.fault( "debug message" ); logger.inspectObject( [ "hello", "from", "fabrication" ], "myArrayOfStrings" ); You can use Log class static methods for more convenient logging. To do so you have to remember to create global logger instance in first place ( logger instance without name ): Log.getLogger().addChannel( FabricationLoggerChannel.getInstance() ); Log.debug( "debug message" ); Log.info( "debug message" ); Log.warn( "debug message" ); Log.error( "debug message" ); Log.fault( "debug message" ); TIP: you can write you own channel and add it to any instance of Logger class. Remember that your channel has to implement ILogChannel interface ( http://code.google.com/p/fabrication/source/browse/framework/trunk/src/org/puremvc/as3/multicore/utilities/fabrication/logging/channel/ILogChannel.as ).
Error consoleIn here any message from fabrication about something wrong just happened is logged. At this moment these two situations are reported:
If you have any idea about more situations that could be prompted in here, let me know
DownloadYou can download FabricationConsole AIR package from here: FabricationConsole. Application supports autoUpdate functionality. | |
Great!I've been constructing a logger module and FabricationConsole really saved my day. But seems like the "Notification sent" and "Notification routed" logging category in the action panel is not functional yet?
"Notification sent" and "Notification routed" logging works fine now.