<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can I send the Wordpress Debug Log to the Cloudron Logs]]></title><description><![CDATA[<p dir="auto">I think I can do this via PHP settings. But I have to know the path of the logs to append the PHP / WP errors</p>
]]></description><link>https://forum.cloudron.io/topic/3524/can-i-send-the-wordpress-debug-log-to-the-cloudron-logs</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 10:23:02 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/3524.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Oct 2020 23:37:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can I send the Wordpress Debug Log to the Cloudron Logs on Mon, 26 Oct 2020 19:16:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> said in <a href="/post/17177">Can I send the Wordpress Debug Log to the Cloudron Logs</a>:</p>
<blockquote>
<p dir="auto">I agree we should visit this at some point for better logging</p>
</blockquote>
<p dir="auto">This fixes the Wordpress "custom log path issue". But I do think we should revisit in the future about other apps and how we might be able to symlink the logs together. Anyway, you got me 75% there on this one, so thank you for that! <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/263a.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--relaxed" style="height:23px;width:auto;vertical-align:middle" title="☺" alt="☺" />️</p>
]]></description><link>https://forum.cloudron.io/post/17180</link><guid isPermaLink="true">https://forum.cloudron.io/post/17180</guid><dc:creator><![CDATA[Lonkle]]></dc:creator><pubDate>Mon, 26 Oct 2020 19:16:58 GMT</pubDate></item><item><title><![CDATA[Reply to Can I send the Wordpress Debug Log to the Cloudron Logs on Mon, 26 Oct 2020 19:14:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Check my comment right about yours, I think we posted at the same time. I'd think it'd be a welcome addition to <em>at least</em> your Wordpress (Developer) installs.</p>
]]></description><link>https://forum.cloudron.io/post/17178</link><guid isPermaLink="true">https://forum.cloudron.io/post/17178</guid><dc:creator><![CDATA[Lonkle]]></dc:creator><pubDate>Mon, 26 Oct 2020 19:14:17 GMT</pubDate></item><item><title><![CDATA[Reply to Can I send the Wordpress Debug Log to the Cloudron Logs on Mon, 26 Oct 2020 19:12:53 GMT]]></title><description><![CDATA[<p dir="auto">I think it's most likely permissions related. That <code>/dev/stdout</code> is probably not opeable by non-root user (and WP runs as www-data user).</p>
<p dir="auto">I have long wanted to fix our situation that we can get the logs from files inside containers. For example, nextcloud also logs into /run/nextcloud/logs/... It's a pain to keep informing users that the logs are in that file and not just the Cloudron logs.</p>
<p dir="auto">I agree we should visit this at some point for better logging</p>
]]></description><link>https://forum.cloudron.io/post/17177</link><guid isPermaLink="true">https://forum.cloudron.io/post/17177</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 26 Oct 2020 19:12:53 GMT</pubDate></item><item><title><![CDATA[Reply to Can I send the Wordpress Debug Log to the Cloudron Logs on Mon, 26 Oct 2020 19:12:46 GMT]]></title><description><![CDATA[<p dir="auto">@Lonk said in <a href="/post/17174">Can I send the Wordpress Debug Log to the Cloudron Logs</a>:</p>
<blockquote>
<p dir="auto">ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' );</p>
</blockquote>
<p dir="auto">Did a little digging around some more Docker stuff and this worked perfectly:</p>
<pre><code>ini_set( 'error_log', '/dev/stderr' );
</code></pre>
]]></description><link>https://forum.cloudron.io/post/17176</link><guid isPermaLink="true">https://forum.cloudron.io/post/17176</guid><dc:creator><![CDATA[Lonkle]]></dc:creator><pubDate>Mon, 26 Oct 2020 19:12:46 GMT</pubDate></item><item><title><![CDATA[Reply to Can I send the Wordpress Debug Log to the Cloudron Logs on Mon, 26 Oct 2020 19:08:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> By defaut, Wordpress does a:</p>
<pre><code>ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' );
</code></pre>
<p dir="auto">And I don't think it would be a bad idea for you guys to add to your custom plugin an <code>ini_set( 'error_log', '/dev/stdout' );</code> (this would need go into a plguin to load after WP sets it's PHP logging location).</p>
<p dir="auto">But, though I can now use <code>ini_set( 'error_log', '/app/data/ . $path);</code> to write the logs to to any location within <code>/app/data</code> - I tried setting it to <code>/dev/stdout</code> didn't start displaying the logs in Cloudron's Realtime Logging system. Any idea why I could change it to any directory and it worked, but that didn't?</p>
]]></description><link>https://forum.cloudron.io/post/17174</link><guid isPermaLink="true">https://forum.cloudron.io/post/17174</guid><dc:creator><![CDATA[Lonkle]]></dc:creator><pubDate>Mon, 26 Oct 2020 19:08:12 GMT</pubDate></item><item><title><![CDATA[Reply to Can I send the Wordpress Debug Log to the Cloudron Logs on Mon, 26 Oct 2020 17:56:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Thanks for info, I’ll do that, and yeah, they do write to their own file but that directory is easily changeable. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/263a.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--relaxed" style="height:23px;width:auto;vertical-align:middle" title="☺" alt="☺" />️ I don’t see a reason why your suggestion wouldn’t work tho.</p>
]]></description><link>https://forum.cloudron.io/post/17157</link><guid isPermaLink="true">https://forum.cloudron.io/post/17157</guid><dc:creator><![CDATA[Lonkle]]></dc:creator><pubDate>Mon, 26 Oct 2020 17:56:34 GMT</pubDate></item><item><title><![CDATA[Reply to Can I send the Wordpress Debug Log to the Cloudron Logs on Mon, 26 Oct 2020 16:07:43 GMT]]></title><description><![CDATA[<p dir="auto">Cloudron logs is anything that appears on standard output/error. If there is a way to send WP logs to stdout, then it should appear. FWIW, if i use error_log in PHP, it does appear in cloudron logs. But maybe WP writes to a file directly. Maybe try <code>/dev/stdout</code> as the file name for the logs, not sure.</p>
]]></description><link>https://forum.cloudron.io/post/17147</link><guid isPermaLink="true">https://forum.cloudron.io/post/17147</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 26 Oct 2020 16:07:43 GMT</pubDate></item></channel></rss>