Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: log file formatting

by jhourcle (Prior)
on May 13, 2005 at 16:24 UTC ( [id://456807]=note: print w/replies, xml ) Need Help??


in reply to Re: log file formatting
in thread log file formatting

He's using a content-type, but it's 'text/plain'. HTML tags would be a bad thing to do, if the file isn't going to be interpreted as HTML. (text/html, text/xhtml, text/xhtml+xml, etc)

The problem is, he's given us the code for what generates the log, and not for what displays it. I think you're right, in that it's being displayed as HTML, and not using HTML line endings. The easiest solution is to make sure that the browser is sending the correct mime headers when viewing the logs.

I'd probably also use common+ log format (aka. NCSA extended log format) , as it would allow you to use existing log analysis packages (eg, analog) for those pretty graphs that management likes

(well, I'd use the format, but I'd do it in the server, rather than generating a new process just to log)

Update: follow the link that dorward gave for the correct xhtml mime type

Replies are listed 'Best First'.
Re^3: log file formatting
by dorward (Curate) on May 16, 2005 at 09:11 UTC
    text/xhtml and text/xhtml+xml are not real MIME types. XHTML documents should be served as application/xhtml+xml. See XHTML Media Types for the full story.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://456807]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found