How to add a 3rd party Log framework ( log4net ) to mvvmcross? -


i use log4net in mvvmcross replace mvxdebugtrace, don't want change core source code, possible ?

debugtrace initialised inside setup in initializedebugservices.

currently implemented on each platform using these steps (example android):

this initialisedebugservices method marked virtual - can override in own setup.cs class within each platform.

for building bridge mvx log4net, you'll need implement simple imvxtrace interface - https://github.com/slodge/mvvmcross/blob/v3/crosscore/cirrious.crosscore/platform/imvxtrace.cs

with done... on each platform should able implement myspecialtrace implements imvxtrace, , should able initialise in setup using:

    protected override void initializedebugservices()     {          mvx.registersingleton<imvxtrace>(new myspecialtrace());          mvxtrace.initialize();     } 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -