Have a web application and i need to write exceptions to graylog. I asked sysadmins and they told me just throw exception messages to stdout and it will be enough, but this way doesnt work for me. Meanwhile a have next door virtualhost with native php app which just have error_reporting = E_ALL and display_errors = 1 and these settings is enough, and graylog see theese errors. But not mine(Im using symfony 4 + monolog) in monolog config i have almost default settings
main: type: fingers_crossed level: debug path: 'php://stdout'
if i change path from stdout to logfilename it works ok, but i need to see my logs in graylog not in file. Unfortunately i havent graylog configs, symfony application only.
Source: Symfony Questions
Was this helpful?
0 / 0