I am building an application that calls upon a compiled executable. Said executable’s source code project file is referenced by the solution file for the parent application. The child executable is a stand alone command line application. The parent is a effectively a GUI wrapper to the console application. When I compile the console application, I have access to all of log4net’s functionality that has been built into the application. However, when I compile the parent project that references the console application’s source code files, everything runs correctly but no logs are generated. What would cause this error to occur, and how can this occurrence be fixed? log4net’s internal debugging mechanism doesn’t throw any messages.
I am building an application that calls upon a compiled executable. Said executable’s source
Share
For log4net to start logging within the referenced assembly you will have to:
Configure()function of log4net by either callinglog4net.Config.XmlConfigurator.Configure()when your application starts, or by adding[assembly: log4net.Config.XmlConfigurator(Watch=true)]to theAssemblyInfo.csfile of your wrapper application.For more info about setting up your config see: http://logging.apache.org/log4net/release/manual/configuration.html