logging

Log4Net can't locate logfile anywhere

☆樱花仙子☆ 提交于 2020-01-04 21:38:36
问题 I have followed many different guides on how to configure the log4net, it is up and running but i can't find a log file anywhere ... This is how my configuration look like: Web.Config <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> <log4net debug="true"> <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="C:\\temp\\Log.txt" /> <appendToFile value="true" /> <rollingStyle value="Size" />

Log4Net can't locate logfile anywhere

六月ゝ 毕业季﹏ 提交于 2020-01-04 21:38:24
问题 I have followed many different guides on how to configure the log4net, it is up and running but i can't find a log file anywhere ... This is how my configuration look like: Web.Config <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> <log4net debug="true"> <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="C:\\temp\\Log.txt" /> <appendToFile value="true" /> <rollingStyle value="Size" />

Logging in multi threaded application, Using mutex in a constructor

寵の児 提交于 2020-01-04 14:07:14
问题 I have been writing a C++ method entry/exit logger, based on RAII. The usage is something like this: void Class::Method() { METHOD_NAME( "Class::Method" ); // I know: I could use __FUNCTION__ instead ;<) … } Logger class: #define METHOD_NAME(name) TraceLogger _traceLog(name); TraceLogger::TraceLogger( const std::string& theContext ) { <lock mutex here> // Trace logging code here } TraceLogger::~TraceLogger() { <lock mutex here> // Trace logging code here } The problem is that the code is not

Logging in multi threaded application, Using mutex in a constructor

萝らか妹 提交于 2020-01-04 14:06:31
问题 I have been writing a C++ method entry/exit logger, based on RAII. The usage is something like this: void Class::Method() { METHOD_NAME( "Class::Method" ); // I know: I could use __FUNCTION__ instead ;<) … } Logger class: #define METHOD_NAME(name) TraceLogger _traceLog(name); TraceLogger::TraceLogger( const std::string& theContext ) { <lock mutex here> // Trace logging code here } TraceLogger::~TraceLogger() { <lock mutex here> // Trace logging code here } The problem is that the code is not

Can a MSBuild custom Logger be specified within a Project file?

痴心易碎 提交于 2020-01-04 12:45:01
问题 There is a command line argument '/logger' for msbuild that allows you to specify a custom implemented logger when building. (https://msdn.microsoft.com/en-us/library/ms171471.aspx) msbuild.exe /? ... /logger: Use this logger to log events from MSBuild. To specify multiple loggers, specify each logger separately. The syntax is: [,][;] The syntax is: [.] The syntax is: {[,] | } The are optional, and are passed to the logger exactly as you typed them. (Short form: /l) Examples: /logger

How is logback's “prudent mode” implemented?

*爱你&永不变心* 提交于 2020-01-04 12:18:01
问题 The prudent mode in logback serializes IO operations between all JVMs writing to the same file, potentially running on different hosts. In other logging frameworks, logging to a central TCP (or JMS) appender seems to be the only solution if output from many loggers should go to the same file. As I am using a Delphi library which is based on log4j and also can not log to the same file from different instances of the same applications (on a terminal server), it would be interesting to know how

How is logback's “prudent mode” implemented?

泪湿孤枕 提交于 2020-01-04 12:16:54
问题 The prudent mode in logback serializes IO operations between all JVMs writing to the same file, potentially running on different hosts. In other logging frameworks, logging to a central TCP (or JMS) appender seems to be the only solution if output from many loggers should go to the same file. As I am using a Delphi library which is based on log4j and also can not log to the same file from different instances of the same applications (on a terminal server), it would be interesting to know how

Activating an OSGI LogListener before other services?

▼魔方 西西 提交于 2020-01-04 11:41:40
问题 I am writing a OSGI-based desktop application, using Apache Felix, Declarative Services and Maven. It's going to use JavaFX, so I'm using Drombler FX too. In the bundles I develop, I'd like to use an appropriate logging mechanism, and I'm currently trying to make Apache Felix Log work. I have no problem getting a LogService but this is not sufficient to make output appear on the console. The word on the net is that Everit's osgi-loglistener-slf4j will do the job and – sure enough – after osgi

Activating an OSGI LogListener before other services?

回眸只為那壹抹淺笑 提交于 2020-01-04 11:40:05
问题 I am writing a OSGI-based desktop application, using Apache Felix, Declarative Services and Maven. It's going to use JavaFX, so I'm using Drombler FX too. In the bundles I develop, I'd like to use an appropriate logging mechanism, and I'm currently trying to make Apache Felix Log work. I have no problem getting a LogService but this is not sufficient to make output appear on the console. The word on the net is that Everit's osgi-loglistener-slf4j will do the job and – sure enough – after osgi

Managing logs/warnings in Python extensions

拥有回忆 提交于 2020-01-04 08:25:10
问题 TL;DR version: What do you use for configurable (and preferably captured) logging inside your C++ bits in a Python project? Details follow. Say you have a a few compiled .so modules that may need to do some error checking and warn user of (partially) incorrect data. Currently I'm having a pretty simplistic setup where I'm using logging framework from Python code and log4cxx library from C/C++. log4cxx log level is defined in a file ( log4cxx.properties ) and is currently fixed and I'm