Welcome Guest, Not a member yet? Register   Sign In
log_path to stdout for AWS CloudWatch
#1
Question 

Hi,

I have some problem to catch the log file on my CI3. I might be in a special case but I need php errors to be redirected to standard display output. Is it possible ?

For my project I have docker machines that run on AWS with fargate. In order to retrieve the logs on AWS CloudWatch I need to be able to redirect my logs to standard output. My apache configuration works well I modified the virtualhost like this

Quote:...
ErrorLog / dev / stdout
CustomLog / dev / stdout combined
</VirtualHost>

My apache access logs are showing up in AWS cloudWatch. However, I have no php errors because codeIgniter has its own error display system ... I have tried several methods but I cannot redirect the errors to standard output, will you have any idea?

Quote:$ config ['log_threshold'] = 1;
$ config ['log_path'] = '/ dev / stdout'; // not working


If not, is it possible to deactivate the error handling of codeIgniter?
Reply


Messages In This Thread
log_path to stdout for AWS CloudWatch - by nicolas33770 - 12-07-2020, 10:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB