.NET的TracerX记录器和查看器 [英] TracerX Logger and Viewer for .NET

查看:69
本文介绍了.NET的TracerX记录器和查看器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想使用VB.net下的TracerX库.我可以在VB.net下注册TracerX库,但是如果我不能实例化任何类.我总是收到消息:没有公共构造函数!"

Hi,
I want to use the TracerX library under VB.net . I can register the TracerX library under VB.net, but if i''m not able to instance any class. I always get the message: "There is no public constructor!" Could you please help?

推荐答案

请参阅 ^ ].看来您是通过调用静态GetLogger方法实例化Logger类的.
Take a look at this article on TracerX[^]. It would appear that you instantiate Logger classes via a call to the static GetLogger method.


该程序为我运行并生成一个文本文件(尽管我更喜欢使用二进制文件来代替与查看器一起使用).

This program runs for me and generates a text file (though I prefer the binary file to use with the viewer).

Imports TracerX
Module Module1
    Dim Log As Logger = Logger.GetLogger("VB Sample")
    Sub Main()
        Logger.DefaultTextFile.Open()
        Log.Info("Hello from VB!")
    End Sub
End Module


这篇关于.NET的TracerX记录器和查看器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆