Click here to Skip to main content
15,897,226 members
Articles / Web Development / HTML5

Fun with HTML5 Canvas, WebSocket, JQuery and ASP.NET. End-result: A live white board on a web page!

Rate me:
Please Sign up or sign in to vote.
4.97/5 (92 votes)
28 Jun 2011CPOL15 min read 279K   12.6K   242  
Playing with some of the cutting edge stuff to develop a live drawing white board on a web page where multiple people can collaborate and each person has the same view at the same time without any page refresh.
<?xml version="1.0" encoding="utf-8" ?>
<loggingConfiguration name="Logging Application Block" tracingEnabled="true"
	   defaultCategory="Info" logWarningsWhenNoCategoriesMatch="true">
    <listeners>
        <add fileName="Logs\Error.log" header=""
            footer="----------------------------------------" formatter="Error" timeStampPattern="yyyyMMdd" rollFileExistsBehavior="Overwrite" rollInterval="Day"
            listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging"
            traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging"
            name="ErrorListener" />
        <add fileName="Logs\Info.log" header="" footer="" formatter="Info" timeStampPattern="yyyyMMdd" rollFileExistsBehavior="Overwrite" rollInterval="Day"
            listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging"
            traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging"
            name="InfoListener" />
        <add fileName="Logs\Debug.log" header="" footer="" formatter="Debug" timeStampPattern="yyyyMMdd" rollFileExistsBehavior="Overwrite" rollInterval="Day"
            listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging"
            traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging"
            name="DebugListener" />
        <add fileName="Logs\Perf.log" header="" footer="" formatter="Perf" timeStampPattern="yyyyMMdd" rollFileExistsBehavior="Overwrite" rollInterval="Day"
            listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging"
            traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging"
            name="PerfListener" />
    </listeners>
    <formatters>
        <add template="Timestamp: {timestamp(local)}&#xD;&#xA;Message: {message}&#xD;&#xA;Category: {category}&#xD;&#xA;Priority: {priority}&#xD;&#xA;EventId: {eventid}&#xD;&#xA;Severity: {severity}&#xD;&#xA;Title:{title}&#xD;&#xA;Machine: {machine}&#xD;&#xA;Application Domain: {appDomain}&#xD;&#xA;Thread Name: {threadName}&#xD;&#xA;Extended Properties: {dictionary({key} - {value}&#xD;&#xA;)}"
            type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging"
            name="Error" />
        <add template="Timestamp: {timestamp(local)} - Message: {message}"
            type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging"
            name="Info" />
        <add template="Timestamp: {timestamp(local)} - Message: {message}"
            type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging"
            name="Debug" />
        <add template="Timestamp: {timestamp(local)} - Message: {message}"
            type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging"
            name="Perf" />
    </formatters>
    <categorySources>
        <add switchValue="All" name="Perf">
            <listeners>
                <add name="PerfListener" />
            </listeners>
        </add>
        <add switchValue="All" name="Info">
            <listeners>
                <add name="InfoListener" />
            </listeners>
        </add>
        <add switchValue="All" name="Error">
            <listeners>
                <add name="ErrorListener" />
            </listeners>
        </add>
        <add switchValue="All" name="Debug">
            <listeners>
                <add name="DebugListener" />
            </listeners>
        </add>
    </categorySources>
    <specialSources>
        <notProcessed switchValue="All" name="Unprocessed Category">
            <listeners>
            </listeners>
        </notProcessed>
        <errors switchValue="All" name="Logging Errors &amp; Warnings">
            <listeners>
            </listeners>
        </errors>
    </specialSources>
</loggingConfiguration>

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
Founder SmartAspects
Bangladesh Bangladesh
I write codes to make life easier, and that pretty much describes me.

Comments and Discussions