In commandbox servers where do custom log files ge...
# box-products
d
In commandbox servers where do custom log files get written to?
<cflog file="mylog" text="info" type="information" >
server is managed with Service Manager and I have out and error logs set for Service Manager, but they are not there. I also looked in the server home logs folder, but I only see server-out.txt and access.txt
a
I find
find / -name *.log
to be very helpful in answering my own questions in situations like this. If not that exact syntax, your file system will have an equivalent command.
I also find that googling for a generic answer "how to find specific files using bash" (or something) a more useful strategy than asking very situation-specific questions, as the answer is more portable.
(and to me more helpful to your current question, I am currently starting a container that has Lucee running via commandbox, and I will go
find / -name *.log
to find where it is in my container. Pls hold.
Copy code
root@946fd9cf673a:/app# find / -name adamTestLogLocation.log
/usr/local/lib/serverHome/WEB-INF/lucee-web/logs/adamTestLogLocation.log
root@946fd9cf673a:/app#
Is it there?
d
it is not there because I'm using ACF 2021.
a
That's not really the point. Did you look for it?
d
ah yes
I think for some reason the log file is not being written at all.
I take it back. my local test is writing the file to WEBINF/cfusion/logs/...
thank you Adam.
a
NP