<?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[How is the winston logger accessible?]]></title><description><![CDATA[<p>The documentation is doing a great job at describing how to configure winston for logging but I can't seem to find information on how to access the logger instance, especially in scripts.  I see <code>req.logger</code> and <code>req.reporter.logger</code> in some repo code but this won't work.  I tried adding the logger to the global scope, but the <code>global</code> variable is not exposed in scripts.  Please enlighten me, also adding this information to the docs would be greatly helpful.</p>
]]></description><link>https://forum.jsreport.net/topic/465/how-is-the-winston-logger-accessible</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 19:15:43 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/465.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Mar 2018 15:48:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How is the winston logger accessible? on Invalid Date]]></title><description><![CDATA[<p>The documentation is doing a great job at describing how to configure winston for logging but I can't seem to find information on how to access the logger instance, especially in scripts.  I see <code>req.logger</code> and <code>req.reporter.logger</code> in some repo code but this won't work.  I tried adding the logger to the global scope, but the <code>global</code> variable is not exposed in scripts.  Please enlighten me, also adding this information to the docs would be greatly helpful.</p>
]]></description><link>https://forum.jsreport.net/post/2310</link><guid isPermaLink="true">https://forum.jsreport.net/post/2310</guid><dc:creator><![CDATA[jfstgermain]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How is the winston logger accessible? on Invalid Date]]></title><description><![CDATA[<p>hi! why you want to get access the logger instance? if you do normal console.log, console.warn, console.error in scripts you will get the messages in the final logs. maybe this is not clear in docs and we need to add this in scripts docs.</p>
<p>the only reason to access the internal logger instance is when you work with jsreport extensions but i think it is not the case here.</p>
]]></description><link>https://forum.jsreport.net/post/2311</link><guid isPermaLink="true">https://forum.jsreport.net/post/2311</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How is the winston logger accessible? on Invalid Date]]></title><description><![CDATA[<p>FYI i've added <a href="https://jsreport.net/learn/scripts#logging" rel="nofollow">a new section in script docs</a> that tries to explain this a little more. thanks</p>
]]></description><link>https://forum.jsreport.net/post/2312</link><guid isPermaLink="true">https://forum.jsreport.net/post/2312</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How is the winston logger accessible? on Invalid Date]]></title><description><![CDATA[<p>Awesome!  Thanks!</p>
]]></description><link>https://forum.jsreport.net/post/2313</link><guid isPermaLink="true">https://forum.jsreport.net/post/2313</guid><dc:creator><![CDATA[jfstgermain]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>