Menu

[r11]: / trunk / SWFInvestigator / src / utils / AS3Compiler / Printer.as  Maximize  Restore  History

Download this file

23 lines (21 with data), 523 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package utils.AS3Compiler
{
import decompiler.Logging.ILog;
/**
* ESC can't handle dotted packages well yet.
* Make testing easier by having a package-less class with a few static functions in it.
*/
public class Printer
{
static private var _logger:ILog = null;
static public function set logger(value:ILog):void {
_logger = value;
}
public static function print(...args):void {
var s:String = args.join(" - ");
if (_logger!=null) {
_logger.print(s);
}
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.