Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 155 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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
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 .