What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

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?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Wait a second:

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.

You can give hints on how to format a code block: Syntax highlighting language hints. <!-- language: lang-none --> works fine.

share|improve this answer
    
Exactly the answer I was about to give. +1 –  Cody Gray May 6 '11 at 8:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .