if (settings.environment == "production") { ... }
--------- Original Message ---------
Subject: [coldbox:26695] Re: [Coldbox 4.3.0] Logbox dbdebugger environment setting
From: "Harkirat" <harki...@gmail.com>
Date: 12/7/17 4:34 pm
To: "ColdBox Platform" <col...@googlegroups.com>
My apologies. I meant the dbAppender not dbDebugger as described here https://logbox.ortusbooks.com/content/appender_properties/dbappender_&_asyncdbappender.htmlOnce I have the DBAppender defined it logs all errors in the database and there seems to be no way to tell it to only log things from production environment.
On Thursday, December 7, 2017 at 4:04:38 PM UTC-5, Ancient Programmer wrote:
Not quite understand your question. Did you mean LogBox Appender in cbDebugger? Check this out: https://www.forgebox.io/view/cbdebuggerYou can also check which environment your site is running:
if(settings.environment =="production"){...}
The settings refers to ColdBox:configSettings.
On Thursday, December 7, 2017 at 12:34:01 PM UTC-6, Harkirat wrote:Is there any way to have the dbDebugger appender for logbox to run only on production environment? I don't see any environment setting variable that can be set for it.
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/f69da450-b647-4b11-bf66-0ad79be5219c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "ColdBox Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/coldbox/JLC0N12hEWg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to coldbox+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/20171207154202.a7243acce6934569d3743d1abfb94fec.a7c5686d74.mailapi%40email25.godaddy.com.