I am creating an application that calls a compiled executable. The specified source code executable source file refers to a solution file for the parent application. The resident executable is a standalone command line application. Parent is an efficient GUI shell for a console application. When I compile a console application, I have access to all the log4net functions that were built into the application. However, when I compile a parent project that references the source code files of the console application, everything runs correctly, but no logs are generated. What can cause this error and how can it be fixed? The log4net internal debugging engine does not send any messages.
In order for log4net to start registering in the specified assembly, you need to:
Configure()
log4net.Config.XmlConfigurator.Configure()
[assembly: log4net.Config.XmlConfigurator(Watch=true)]
AssemblyInfo.cs
. : http://logging.apache.org/log4net/release/manual/configuration.html
, . log4net.Internal.Debug = true , . ( , , )
p p.start() stdout ; Console.Write(p.StandardOutput.ReadToEnd());
. ( log4net ) app.config . ( )
Source: https://habr.com/ru/post/1754268/More articles:Android emulator does not recognize Hebrew font - androidSaving a file using WWW :: Selenium - perlto load another css for site localization - asp.netHow can I combine count / 'group by' comparisons on my own? - sqlSending an Android application to a friend - androidUsing C style encapsulation methods in Clojure? - clojureКак изменить раскладку клавиатуры (решение X11 API) - cAndroid Dev: NO EC / IO? - javaAPI to find out which protobuf message is being sent to - protobuf-netJQuery page at the top of the page - javascriptAll Articles