1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
41using System . Text . RegularExpressions ;
52
63using static LogExpert . Core . Classes . Columnizer . TimeFormatDeterminer ;
@@ -18,11 +15,11 @@ public class SquareBracketColumnizer : ILogLineColumnizer, IColumnizerPriority
1815 private int _columnCount = 5 ;
1916 private bool _isTimeExists = false ;
2017
21- public SquareBracketColumnizer ( )
18+ public SquareBracketColumnizer ( )
2219 {
2320 }
2421
25- public SquareBracketColumnizer ( int columnCount , bool isTimeExists ) : this ( )
22+ public SquareBracketColumnizer ( int columnCount , bool isTimeExists ) : this ( )
2623 {
2724 // Add message column
2825 _columnCount = columnCount + 1 ;
@@ -34,22 +31,22 @@ public SquareBracketColumnizer(int columnCount, bool isTimeExists) : this()
3431 }
3532 }
3633
37- public bool IsTimeshiftImplemented ( )
34+ public bool IsTimeshiftImplemented ( )
3835 {
3936 return true ;
4037 }
4138
42- public void SetTimeOffset ( int msecOffset )
39+ public void SetTimeOffset ( int msecOffset )
4340 {
4441 timeOffset = msecOffset ;
4542 }
4643
47- public int GetTimeOffset ( )
44+ public int GetTimeOffset ( )
4845 {
4946 return timeOffset ;
5047 }
5148
52- public DateTime GetTimestamp ( LogExpert . ILogLineColumnizerCallback callback , ILogLine line )
49+ public DateTime GetTimestamp ( LogExpert . ILogLineColumnizerCallback callback , ILogLine line )
5350 {
5451 IColumnizedLogLine cols = SplitLine ( callback , line ) ;
5552 if ( cols == null || cols . ColumnValues == null || cols . ColumnValues . Length < 2 )
@@ -81,7 +78,7 @@ public DateTime GetTimestamp(LogExpert.ILogLineColumnizerCallback callback, ILog
8178 }
8279 }
8380
84- public void PushValue ( LogExpert . ILogLineColumnizerCallback callback , int column , string value , string oldValue )
81+ public void PushValue ( LogExpert . ILogLineColumnizerCallback callback , int column , string value , string oldValue )
8582 {
8683 if ( column == 1 )
8784 {
@@ -105,22 +102,22 @@ public void PushValue(LogExpert.ILogLineColumnizerCallback callback, int column,
105102 }
106103 }
107104
108- public string GetName ( )
105+ public string GetName ( )
109106 {
110107 return "Square Bracket Columnizer" ;
111108 }
112109
113- public string GetDescription ( )
110+ public string GetDescription ( )
114111 {
115112 return "Splits every line into n fields: Date, Time and the rest of the log message" ;
116113 }
117114
118- public int GetColumnCount ( )
115+ public int GetColumnCount ( )
119116 {
120117 return _columnCount ;
121118 }
122119
123- public string [ ] GetColumnNames ( )
120+ public string [ ] GetColumnNames ( )
124121 {
125122 var columnNames = new List < string > ( GetColumnCount ( ) ) ;
126123 if ( _isTimeExists )
@@ -151,7 +148,7 @@ public string[] GetColumnNames()
151148 return columnNames . ToArray ( ) ;
152149 }
153150
154- public IColumnizedLogLine SplitLine ( LogExpert . ILogLineColumnizerCallback callback , ILogLine line )
151+ public IColumnizedLogLine SplitLine ( LogExpert . ILogLineColumnizerCallback callback , ILogLine line )
155152 {
156153 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
157154 // 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
@@ -217,7 +214,7 @@ public IColumnizedLogLine SplitLine(LogExpert.ILogLineColumnizerCallback callbac
217214 return clogLine ;
218215 }
219216
220- void SquareSplit ( ref Column [ ] columns , string line , int dateLen , int timeLen , int dateTimeEndPos , ColumnizedLogLine clogLine )
217+ void SquareSplit ( ref Column [ ] columns , string line , int dateLen , int timeLen , int dateTimeEndPos , ColumnizedLogLine clogLine )
221218 {
222219 List < Column > columnList = [ ] ;
223220 int restColumn = _columnCount ;
@@ -256,7 +253,7 @@ void SquareSplit(ref Column[] columns, string line, int dateLen, int timeLen, in
256253 columns = columnList . ToArray ( ) ;
257254 }
258255
259- public Priority GetPriority ( string fileName , IEnumerable < ILogLine > samples )
256+ public Priority GetPriority ( string fileName , IEnumerable < ILogLine > samples )
260257 {
261258 Priority result = Priority . NotSupport ;
262259 TimeFormatDeterminer timeDeterminer = new ( ) ;
0 commit comments