http://www.perlmonks.org?node_id=559754


in reply to Get the Pretty view use STDERR in error_log file

Can you clarify the term "pretty view"? I find your log pretty informative.
If you're using Apache web server you can customize log output with LogFormat directive.
  • Comment on Re: Get the Pretty view use STDERR in error_log file

Replies are listed 'Best First'.
Re^2: Get the Pretty view use STDERR in error_log file
by jhourcle (Prior) on Jul 07, 2006 at 13:27 UTC
    If you're using Apache web server you can customize log output with LogFormat directive.

    You can modify the access log with LogFormat. You cannot modify the error log.

    From http://httpd.apache.org/docs/2.0/logs.html#errorlog :

    It is not possible to customize the error log by adding or removing information. However, error log entries dealing with particular requests have corresponding entries in the access log. For instance, the above example entry corresponds to an access log entry with status code 403. Since it is possible to customize the access log, you can obtain more information about error conditions using that log file.
      /me bows humble before the master :-)
      I admit, OPs question confused me, so I was rather too quick to answer.
Re^2: Get the Pretty view use STDERR in error_log file
by gopalr (Priest) on Jul 07, 2006 at 10:24 UTC

    Hi arkturuz,

    Pretty view like "Apple Banana Orange Flower Green Red Yellow" in Single line.

    I am using Apache Web Server.

      print STDERR join(' ',@arr)
      should make it appear in one line in the Apache error log.

      --Solo

      --
      You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.