Click here to Skip to main content
15,867,834 members
Articles / Desktop Programming / WPF

How To Embed An Application Into a Docking Library

Rate me:
Please Sign up or sign in to vote.
5.00/5 (6 votes)
3 Sep 2011CPOL7 min read 29.2K   2.5K   19  
Step by Step conversion of an application into a Docking application component
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <!-- This section contains the log4net configuration settings -->
    <log4net>
        <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
            <file value="Sofa_rolling_log.txt" />
            <appendToFile value="true" />

            <maxSizeRollBackups value="1000" />
            <maximumFileSize value="100000" />
            <rollingStyle value="Size" />
            <staticLogFileName value="true" />

            <layout type="log4net.Layout.PatternLayout">
                <header value="[Header]&#13;&#10;"/>
                <footer value="[Footer]&#13;&#10;"/>
                <conversionPattern value="%date %-5level - %message%newline" />
            </layout>
        </appender>

        <appender name="Console" type="log4net.Appender.TraceAppender">
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%date %-5level - %message%newline" />
            </layout>
        </appender>

        <!-- Setup the root category, add the appenders and set the default level -->
        <root>
            <!-- level value="INFO" / -->
            <appender-ref ref="RollingLogFileAppender" />
            <appender-ref ref="Console" />
        </root>
    </log4net>

</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions