SubMain - CodeIt.Right The First Time!

/Community

Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
 
Home Forums Blogs Tutorials/CIR Tutorials/GD Downloads
Welcome to SubMain Community Sign in | Join | Help

Spacing. I need to add spaces.

Last post 05-17-2014, 12:06 PM by AeroClassics. 0 replies.
Sort Posts: Previous Next
  •  05-17-2014, 12:06 PM 3782

    Spacing. I need to add spaces.

    OK. How do I add spaces so that lines look right> I have tried   without any luck. Here is an example:

     

        /// ---------------------------------------------------------------------------------------------------------------------------
        /// <summary>
        /// <font color="red">Class CLog.</font>
        /// <br/>This class is designed to provide the ability to create log files in a common location using the NLog library. These Log
        /// <br/>are commonly stored in the <font color="red">C:\ProgramData\{AppName}\Logs\{Date}\{AppName]{Date}.log</font>. This is configurable
        /// <br/>by changing the information stored in the App.Config file for your application.
        /// <br/>
        /// <br/>
        /// <br/>To use this convenient way to add logging to any application do the following:
        /// <br/>
        /// <ol>
        /// <li>1. Add <font color="blue">using CommonLogging</font> to your file</li>
        /// <li>2. Add a reference to <font color="blue">CommonLoggingLib.dll</font> to your project</li>
        /// </ol>
        /// <br/> Add the following sections to your App.Config file. These will be compiled and places in your application configuration file.
        /// <br/> In the configuration section add:
        /// <br/>
        /// <tt>
        /// &lt;configSections&gt;<br/>
        /// &nbsp;&nbsp;&nbsp;&nbsp;&lt;section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" &#47;&gt;<br/>
        /// &lt;&#47;configSections&gt;<br/>
        /// &lt;nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;<br/>
        /// &nbsp;&nbsp;&nbsp;&nbsp;&lt;variable name="appName" value="${gdc:item=assemblyName}" /&gt;<br/>
        /// &nbsp;&nbsp;&nbsp;&nbsp;&lt;variable name="HeaderLayout" value="********* ${processname} Assembly: ${gdc:item=assemblyName} Version: ${gdc:item=version} Windows ID: ${windows-identity} Started @ ${longdate} *********" /&gt;<br/>
        /// &nbsp;&nbsp;&nbsp;&nbsp;&lt;targets&gt;<br/>
        /// &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;target xsi:type="File" name="logfile" header="${HeaderLayout}" fileName="${cached:cached=true:inner=${specialfolder:CommonApplicationData}/${appName}/Logs/${shortdate}/${appName}${date:format=HHmmss}}.log" layout="${date:format=HH\:mm\:ss.ffff} ${uppercase:${level}} ${callsite}: ${message}" archiveFileName="${specialfolder:CommonApplicationData}/${appName}/Logs/archives/${appName}${shortdate}.{#}.log" archiveEvery="Day" archiveNumbering="Rolling" /&gt;<br/>
        /// &nbsp;&nbsp;&nbsp;&nbsp;&lt;/targets&gt;<br/>
        /// &nbsp;&nbsp;&nbsp;&nbsp;&lt;rules&gt;<br/>
        /// &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;logger name="HandyTransmitter" minlevel="Debug" writeTo="logfile" /&gt;<br/>
        /// &nbsp;&nbsp;&nbsp;&nbsp;&lt;/rules&gt;<br/>
        /// &lt;/nlog&gt;<br/>
        /// </tt>
        /// </summary>
        ///  ---------------------------------------------------------------------------------------------------------------------------
        /// 

     

    Which gives me:

     

    Class CLog.
    This class is designed to provide the ability to create log files in a common location using the NLog library. These Log
    are commonly stored in the C:\ProgramData\{AppName}\Logs\{Date}\{AppName]{Date}.log. This is configurable
    by changing the information stored in the App.Config file for your application.


    To use this convenient way to add logging to any application do the following:
    1. 1. Add using CommonLogging to your file
    2. 2. Add a reference to CommonLoggingLib.dll to your project

    Add the following sections to your App.Config file. These will be compiled and places in your application configuration file.
    In the configuration section add:
    <configSections>
    <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
    </configSections>
    <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <variable name="appName" value="${gdc:item=assemblyName}" />
    <variable name="HeaderLayout" value="********* ${processname} Assembly: ${gdc:item=assemblyName} Version: ${gdc:item=version} Windows ID: ${windows-identity} Started @ ${longdate} *********" />
    <targets>
    <target xsi:type="File" name="logfile" header="${HeaderLayout}" fileName="${cached:cached=true:inner=${specialfolder:CommonApplicationData}/${appName}/Logs/${shortdate}/${appName}${date:format=HHmmss}}.log" layout="${date:format=HH\:mm\:ss.ffff} ${uppercase:${level}} ${callsite}: ${message}" archiveFileName="${specialfolder:CommonApplicationData}/${appName}/Logs/archives/${appName}${shortdate}.{#}.log" archiveEvery="Day" archiveNumbering="Rolling" />
    </targets>
    <rules>
    <logger name="HandyTransmitter" minlevel="Debug" writeTo="logfile" />
    </rules>
    </nlog>
     
    Which is not what I want.
     
    Thanks,
    Doug

    "If you are going through hell...........
    keep going!!"
    -- Winston Churchill
View as RSS news feed in XML
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |