c# - Is there no app tracing in mono? -


here project structure:

. |-- app.config |-- bin |   `-- debug |-- nlog.config |-- nlog.xsd |-- obj |   `-- debug |-- packages.config |-- program.cs |-- properties |   `-- assemblyinfo.cs |-- serviceclient.csproj `-- web references     `-- testsvc         |-- reference.cs         |-- reference.map         |-- testservice.disco         `-- testservice.wsdl  7 directories, 14 files 

i've manually compiled project using below mcs command:

mcs -d:trace -d:debug -r:system.web.services.dll -out:./bin/debug/serviceclient.exe web\ references/testsvc/reference.cs program.cs 

i've copied app.config target folder serviceclient.exe.config

heres configuration looks like:

<?xml version="1.0" encoding="utf-8"?> <configuration> <system.diagnostics>     <sharedlisteners>         <add name="console" type="system.diagnostics.consoletracelistener"/>         <add name="nlog" type="nlog.nlogtracelistener,nlog"/>     </sharedlisteners>      <sources>         <source name="system.net" switchvalue="all">             <listeners>                 <add name="nlog"/>             </listeners>         </source>         <source name="system.net.sockets" switchvalue="all">             <listeners>                 <add name="nlog"/>             </listeners>         </source>     </sources> </system.diagnostics> </configuration> 

but when run:

mono serviceclient.exe "hello world" 

i see no trace output...

please try mono log profiler.

basically need run application this:

mono --profile=log serviceclient.exe "hello world" 

it generate file output.mlpd in same directory. see it:

mprof-report output.mlpd 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -