Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18351

Re: where does the output of error_log(... ,4)?

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: where does the output of error_log(... ,4)?
Date Thu, 27 Aug 2020 11:06:28 +0200
Lines 32
Message-ID <hqpbckF175lU1@mid.individual.net> (permalink)
References <ri642s$1f2a$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace individual.net f+iLIYOwQktZS5mMnjgTfQrWdfud+H1lVjjdhw9bDnOwbIuqKz
Cancel-Lock sha1:0UV3Q2CFOiA9JOZknbgUhLUXQ6g=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0
In-Reply-To <ri642s$1f2a$1@gioia.aioe.org>
Content-Language en-US-large
Xref csiph.com comp.lang.php:18351

Show key headers only | View raw


On 26/08/2020 18.53, Hostel wrote:
> <?php // index.php (http://localhost)
> error_log(
>      'abc123',
>      4 // message is sent directly to the SAPI logging handler
> );
> 
> What does it mean message is sent directly to the SAPI logging handler?
> Where does the output?

The SAPI is a or a collection of interfaces that lies between php and 
the web service. One of them will be used to send the error message to 
the logger instance, which in most Linux cases would be a syslog service 
or journald

> The page http://localhost it displays nothing!!!

error_log do not display anything, it's to send en error log based on 
the message_type defined. See 
https://www.php.net/manual/en/function.error-log.php

I would suggest you look in your system logs, most likely in 
/var/log/messages or /var/log/syslog depending on your distribution, 
with systemd/Linux you may also try the run the following command:
journalctl -a


For people who like to pay for a crippled OS, then use the eventvwr

-- 

  //Aho

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

where does the output of error_log(... ,4)? Hostel <f@f.f> - 2020-08-26 18:53 +0200
  Re: where does the output of error_log(... ,4)? "J.O. Aho" <user@example.net> - 2020-08-27 11:06 +0200
  Re: where does the output of error_log(... ,4)? Arno Welzel <usenet@arnowelzel.de> - 2020-08-30 14:21 +0200
    Re: where does the output of error_log(... ,4)? Hostel <f@f.f> - 2020-09-01 12:36 +0200
      Re: where does the output of error_log(... ,4)? Arno Welzel <usenet@arnowelzel.de> - 2020-09-02 10:18 +0200
        Re: where does the output of error_log(... ,4)? Hostel <f@f.f> - 2020-09-03 16:50 +0200
          Re: where does the output of error_log(... ,4)? Arno Welzel <usenet@arnowelzel.de> - 2020-09-04 12:41 +0200
            Re: where does the output of error_log(... ,4)? Hostel <f@f.f> - 2020-09-05 08:57 +0200
              Re: where does the output of error_log(... ,4)? "J.O. Aho" <user@example.net> - 2020-09-05 12:26 +0200
                Re: where does the output of error_log(... ,4)? Hostel <f@f.f> - 2020-09-05 15:46 +0200
              Re: where does the output of error_log(... ,4)? Arno Welzel <usenet@arnowelzel.de> - 2020-09-05 15:47 +0200
  Re: where does the output of error_log(... ,4)? Ace of diamonds <he12091983@gmail.com> - 2022-07-06 09:21 -0700

csiph-web