/    Sign up×
Community /Pin to ProfileBookmark

How to watch server-side PHP errors in realtime

How are coders here tackling viewing error logs in real-time? Or are you happy to Linux tail command for the log?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@Sup3rkirbyJan 13.2015 — I just use the tail command and honestly I am not aware of any better way to do this.

I suppose a custom solution could always be built that watches the error log file and pushes updates to a page or app. But being able to make an SSH connection and tail the error log file just seems so much easier for basically the same result.
Copy linkTweet thisAlerts:
@stevedevauthorJan 17.2015 — usually the way but I tried an alternative. The approac: have the server provide you with a continually updated list of errors in realtime? As it turns out this is a quite easily done. The rest of this article shows how.

https://jresponse.net/blog/watch-server-side-php-errors-realtime/
Copy linkTweet thisAlerts:
@NogDogJan 21.2015 — You can tell the error_log() function to send it as an email -- useful for specific error traps you want to know about. (Or just send it to a specific, separate error file if you don't want lots of email. ? )
Copy linkTweet thisAlerts:
@KesharLimbuJan 29.2015 — I use google chrome console to view the php errror in real time.
×

Success!

Help @stevedev spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...