Lucee does nto seemt o be writing to logs

370 views
Skip to first unread message

Shinpei Kuga

unread,
Sep 14, 2016, 6:25:10 PM9/14/16
to Lucee
New to Lucee and am presently transferring some legacy CFML apps to a new Lucee Server on
WindowServer 2012 with IIS8.

While all apps seem to be working I cannto seem to force an error to show up or get logged.
Anytime there should be soem kind of error I only see the native IIS 500 error page and nothing
gets sent to /lucee/tomcat/webapps/ROOT/WEB-INF/lucee/logs/exception.log

have been experimenting all day on the admin/server.cfm in both the settings-error pages
and the logging pages.Any assistance appreciated.




Jordan Michaels

unread,
Sep 14, 2016, 6:35:33 PM9/14/16
to lu...@googlegroups.com
Look in C:\lucee\tomcat\logs.

--
Kind regards,
Jordan Michaels
Vivio Technologies
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/2e9dad77-9698-44c7-8f80-b8eeb79aea3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shinpei Kuga

unread,
Sep 16, 2016, 11:09:18 AM9/16/16
to Lucee
Much thanks but these do seem to be a different kind of logs tahn teh oens that would be in
/lucee/tomcat/webapps/ROOT/WEB-INF/lucee/logs/exception.log

Nor does the logs under tomcat seem to describe ant CFe rrors or be configurable from the CFAdmin
interface (under error in the left nav)

Shinpei Kuga

unread,
Sep 16, 2016, 11:11:37 AM9/16/16
to Lucee
Apologies I mean the logging configuration
(under the the CFADmin UI lefnav in Logging)

Denard Springle

unread,
Sep 17, 2016, 2:09:40 PM9/17/16
to Lucee
If you're using IIS in a development/test environment (not public facing production) then under Settings -> Error you can make the following changes:

Set the 500 and 404 error templates to error.cfm (from the default of error-public.cfm) and untick the Status Codes checkbox which will always return 200, bypassing IIS's handling of errors and returning the infamous IIS 500 error page. 

That will, at the very least, get you visible errors on-screen while developing. DO NOT do this in production, however, as it's a big security risk and will disclose information about your environment that hackers just don't need to know :)

For logging, go to Settings -> Logging and click the edit link next to any log (exception, for example) - from there you can change the log level (set to INFO by default) to DEBUG or, if you really want to punish your server then set it to TRACE. Levels of logging go from TRACE (the most verbose, logging everything) to FATAL (the least verbose, logging only fatal errors). 

From here you can also set the location for the logs ({lucee-config}/logs/exception.log by default for the exception log) and select a logging template if you want. Classic is similar to the ACF log format, but you can also choose pattern and specify what you want to see logged, or XML or HTML if you'd rather use them for logging purposes. 

They key here is going to be the log level however, you shouldn't really need to change anything else unless you have specific requirements you want to use to override the defaults.

HTH

-- Denny

Shinpei Kuga

unread,
Sep 22, 2016, 11:07:17 AM9/22/16
to Lucee
Much thanks this was for a test staging server for developers so yes I wanted to see and log errors

Much thanks for al the config info.

trivalle...@gmail.com

unread,
Feb 2, 2017, 7:15:39 PM2/2/17
to Lucee
Denard,

How do you get Lucee to display application logs like in the Coldfusion Administrator?  When specific errors and line number references.

Thank you,

Dale

Mark Drew

unread,
Feb 3, 2017, 1:20:49 AM2/3/17
to lu...@googlegroups.com
Go to the lucee admin and on the left you can see debugging and you can turn that on. 

Then under templates you can assign a template to display the debug information. 

If you don't want to show it, you can view the logs under the debugging -> logs section. 

HTH

Mark Drew
- Sent by typing with my thumbs. 
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages