Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I recently added this question on SOthis question on SO, which contained a large chunk of log file output. I found it most readable when I formatted as code:

LOG: User = eggtech024-PC\eggtech024
LOG: DisplayName = Spring.Core, Version=1.3.1.40711, Culture=neutral, PublicKeyToken=65e474d141e25e07
 (Fully-specified)
... snip ...
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

Downside of this approach is that it smart-formats code constructs it recognizes, which isn't really useful.

What is the preferred way of formatting log-file like output?

I recently added this question on SO, which contained a large chunk of log file output. I found it most readable when I formatted as code:

LOG: User = eggtech024-PC\eggtech024
LOG: DisplayName = Spring.Core, Version=1.3.1.40711, Culture=neutral, PublicKeyToken=65e474d141e25e07
 (Fully-specified)
... snip ...
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

Downside of this approach is that it smart-formats code constructs it recognizes, which isn't really useful.

What is the preferred way of formatting log-file like output?

I recently added this question on SO, which contained a large chunk of log file output. I found it most readable when I formatted as code:

LOG: User = eggtech024-PC\eggtech024
LOG: DisplayName = Spring.Core, Version=1.3.1.40711, Culture=neutral, PublicKeyToken=65e474d141e25e07
 (Fully-specified)
... snip ...
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

Downside of this approach is that it smart-formats code constructs it recognizes, which isn't really useful.

What is the preferred way of formatting log-file like output?

edited tags
Link
Cody Gray
  • 64.4k
  • 23
  • 197
  • 313
edited tags
Link
Cody Gray
  • 64.4k
  • 23
  • 197
  • 313
Source Link
Marijn
  • 1.5k
  • 12
  • 16
Loading