You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "wederbrand (via GitHub)" <gi...@apache.org> on 2025/05/09 09:04:53 UTC

Re: [I] Logging to stdout stops working after a couple of minutes [trafficserver]

wederbrand commented on issue #12197:
URL: https://github.com/apache/trafficserver/issues/12197#issuecomment-2865763155

   In an attempt to work around this issue I've tried to pre-create a file that is a symlink to stdout of the first process
   
        RUN ln -sF /proc/1/fd/1 /opt/var/log/trafficserver/output.log
        RUN chown -h nobody:nogroup /opt/var/log/trafficserver/output.log
   
   but it also fails.
   
   Neither ascii nor ascii_pipe accepts that file and rotates it on startup
   
       traffic_server WARNING: File /opt/var/log/trafficserver/output.log will be rolled because a LogObject with different format is requesting the same filename`
   
   I've tried to read the source to understand what is required of my output.log for to not be rotated but my very poor c++-skills limits me and I can't find anything that I understand.
   
   
   Is there any known way of doing something similar to this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org