本文介绍了日志记录AS3 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速的问题,我一直在寻找一个简单的日志记录工具,AS3项目(我不希望任何Flex的依赖关系),我的即时通讯pression至今一直没有积极开发项目。

quick question, I've been looking for a simple logging tool for AS3 projects (I do not want any Flex dependencies) and my impression so far has been that there is no actively developed project.

我需要的是基本的日志,和适配器,让我送记录到文件(使用AIR和一个LocalConnection也许),也许发送到html格等。

What I need is basic logging, and adapters to allow me to send logging to file (using AIR and a LocalConnection maybe) and maybe send to html div etc.

任何人有一个简单,重量轻项目中的任何意见?

Anyone have any opinions on a simple, light weight project?

推荐答案

我们最近启动了一项名为AS3Commons项目,其中包含一个早期实现的AS3日志框架。我们的目标是提供一个日志抽象API,可以让你在适配器其他日志框架堵塞。我们也有,记录使用跟踪内置的记录。

We have recently started a project called AS3Commons that contains an early implementation of an AS3 Logging framework. We're aiming to provide a Logging abstraction API that allows you to plug in adapters for other logging frameworks. We also have a built-in logger that logs using trace.

它的用法类似于其他日志框架。

It's usage is similar to other logging frameworks.

private static var logger:ILogger = LoggerFactory.getLogger("com.domain.Class");

检查它在 HTTP://$c$c.google.com/p/as3-commons /

任何反馈是AP preciated。

Any feedback is appreciated.

这篇关于日志记录AS3 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 18:32