Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [Solved] Where does printf() output go?

    Scheduled Pinned Locked Moved Development
    2 Posts 2 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JoshW
      last edited by

      This seems like a stupid question, but I can't figure it out.  When printf() is called in the PHP code, where is the output?

      Update:

      I found some indication that printf() output is sent to /dev/null, so I'm using log_error() instead.  Output goes to /var/log/system.log.

      1 Reply Last reply Reply Quote 0
      • E
        Efonnes
        last edited by

        It depends on where the code is being used.  If it is a web gui or console program, the output should go there.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.