New NLog snapshot available - automatic wrapping of targets with AsyncWrapper

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

New NLog snapshot available - automatic wrapping of targets with AsyncWrapper

Jarek Kowalski
Administrator
Hi NLoggers,

I've just uploaded a new set of NLog snapshots binary compatible with NLog
v0.95.

It adds a new feature to automatically wrap targets with AsyncWrapper. This
makes setting up async operation really easy. The new feature can be enabled
by using "async" attribute on the <targets/> element.

This piece of configuration:

<nlog>
    <targets async="true">
        <target name="n1" type="T1" ... />
        <target name="n2" type="T2" ... />
        <target name="n3" type="T3" ... />
        <target name="n4" type="T4" ... />
    </targets>
</nlog>

is equivalent to more explicit:

<nlog>
    <targets>
        <target name="n1" type="AsyncWrapper">
            <target name="n1_sync" type="T1" ... />
        </target>
        <target name="n2" type="AsyncWrapper">
            <target name="n2_sync" type="T2" ... />
        </target>
        <target name="n3" type="AsyncWrapper">
            <target name="n3_sync" type="T3" ... />
        </target>
        <target name="n4" type="AsyncWrapper">
            <target name="n4_sync" type="T4" ... />
        </target>
    </targets>
</nlog>

You can get the files from:

http://www.nlog-project.org/snapshots/

Jarek



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nlog-list mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nlog-list
NLog Blog