@@ -11,7 +11,6 @@ public class LogFile : HostIOSubscriberBase
11
11
{
12
12
#region Fields
13
13
14
- //private string DateTimeFormat = "dd-MMM-yyyy - HH:mm:ss";
15
14
private readonly string fileName ;
16
15
private readonly string path ;
17
16
@@ -71,7 +70,7 @@ public override void WriteDebug(string message)
71
70
CheckDirectory ( ) ;
72
71
if ( message != String . Empty )
73
72
{
74
- message = String . Format ( "{0,-18 } - [D] {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
73
+ message = String . Format ( "{0,-29 } - [D] {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
75
74
}
76
75
77
76
File . AppendAllText ( System . IO . Path . Combine ( path , fileName ) , message ) ;
@@ -98,7 +97,7 @@ public override void WriteError(string message)
98
97
CheckDirectory ( ) ;
99
98
if ( message . Trim ( ) != String . Empty )
100
99
{
101
- message = String . Format ( "{0,-18 } - [E] {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
100
+ message = String . Format ( "{0,-29 } - [E] {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
102
101
}
103
102
104
103
File . AppendAllText ( System . IO . Path . Combine ( path , fileName ) , message ) ;
@@ -125,7 +124,7 @@ public override void WriteOutput(string message)
125
124
CheckDirectory ( ) ;
126
125
if ( message . Trim ( ) != String . Empty )
127
126
{
128
- message = String . Format ( "{0,-18 } - {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
127
+ message = String . Format ( "{0,-29 } - {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
129
128
}
130
129
131
130
File . AppendAllText ( System . IO . Path . Combine ( path , fileName ) , message ) ;
@@ -152,7 +151,7 @@ public override void WriteVerbose(string message)
152
151
CheckDirectory ( ) ;
153
152
if ( message . Trim ( ) != String . Empty )
154
153
{
155
- message = String . Format ( "{0,-18 } - [V] {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
154
+ message = String . Format ( "{0,-29 } - [V] {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
156
155
}
157
156
158
157
File . AppendAllText ( System . IO . Path . Combine ( path , fileName ) , message ) ;
@@ -179,7 +178,7 @@ public override void WriteWarning(string message)
179
178
CheckDirectory ( ) ;
180
179
if ( message . Trim ( ) != String . Empty )
181
180
{
182
- message = String . Format ( "{0,-18 } - [W] {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
181
+ message = String . Format ( "{0,-29 } - [W] {1}" , DateTime . UtcNow . ToString ( DateTimeFormat ) , message ) ;
183
182
}
184
183
185
184
File . AppendAllText ( System . IO . Path . Combine ( path , fileName ) , message ) ;
0 commit comments