|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System.Xml.Serialization;
namespace LogViewer
{
public class DefaultLogBehavior : LogBehavior
{
public DefaultLogBehavior()
: this("Default",
new Regex("(?<info>.*)\n", RegexOptions.Multiline | RegexOptions.Compiled),
"yyyy-MM-dd HH:mm:ss,fff")
{
}
public DefaultLogBehavior(string p_strName, Regex p_regParser, string p_strDateFormat)
{
BehaviorName = p_strName;
ParserRegex = p_regParser;
DateFormat = p_strDateFormat;
}
}//class
}//namespace
|
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.
I've been all over the coding world since earning my degrees
have worked in c++ and java, finally setteling into c# about 6 years ago, where i spent a good amount of my time in Performance tweaking & memory debugging, as well as designing new solutions and hacking at old ones to stay in line.
Computers never cease to amaze me, and i'm glad to have found a field where i get paid to do what i enjoy.
I have been toying around with the idea of publishing stuff online for years, never actually getting around to it, so i still have a lot of stuff to write up, aside from all the other new stuff i'll get excited about, hope you'll like enjoy reading it as much as i enjoy writing.
linkedin
google plus