AS3 的日志 API [英] Logging API for AS3
问题描述
快速提问,我一直在为 AS3 项目寻找一个简单的日志工具(我不想要任何 Flex 依赖项),到目前为止我的印象是没有积极开发的项目.
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 div 等的适配器.
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://code.google.com/p/as3-commons/查看
感谢任何反馈.
这篇关于AS3 的日志 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!