English 中文(简体)
为世界合作框架的运作建立标志/获得名录
原标题:Creating a log for WCF operations / getting app directory

我想要我的工联服务记录错误/操作等。

我有一个非常简单的伐木类别,但发现该名录是为了制造/书写,从而恢复一个无参考例外:

    public static string Path()
    {
        return Path.GetDirectoryName
            (Assembly.GetEntryAssembly().Location);
    }

这只是一个独一无二的征兆,但并非世界团结基金,也许还有不同的公约?

或者说,在WCF中是否有任何简单的伐木图书馆?

最佳回答
问题回答

暂无回答




相关问题
Best logging approach for composite app?

I am creating a Composite WPF (Prism) app with several different projects (Shell, modules, and so on). I am getting ready to implement logging, using Log4Net. It seems there are two ways to set up the ...

How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

How to validate Java logging properties files?

I have a basic facility for allowing users to remotely apply changes to the logging files in my application. Some logs are configured using java.util.logging properties files, and some are configured ...

Logging SAS scripts

I ve been developing a lot of Java, PHP and Python. All of which offer great logging packages (Log4J, Log or logging respectively). This is a great help when debugging applications. Especially if the ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

热门标签