Skip to main content
ah_dc
Known Participant
Jun 6, 2019 2:48 PM UTC
Answered

ColdFusion 2018 CFLog

Hi,

How can we get cflog files created per day?

Thank you.

This topic is closed to new replies. Start a new post to keep the conversation going.
Dave WattsCorrect answer
Community Expert
Jun 6, 2019 3:28 PM UTC

I don't think you have any control over the built-in log rolling functionality.

Dave Watts, Eidolon LLC

Dave Watts, Eidolon LLC

7 replies

Community Expert
Jun 6, 2019 2:54 PM UTC

If you're using CFLOG to create your own log files, you can specify the exact name of those files, as described here:

https://www.raymondcamden.com/2010/11/29/Ask-a-Jedi-Prevent-ColdFusion-from-deleting-log-files

As for the "built-in" log files, there's no control over the log rolling process as far as I'm aware. So, you might want to use your own log files instead.

Dave Watts, Eidolon LLC

Translate
Dave Watts, Eidolon LLC
ah_dc
ah_dcAuthor
Known Participant
Jun 6, 2019 3:27 PM UTC

Thanks Dave. It is custom log file. As per link, it is suggesting to use cffile. We have this coded for 20 files and I want to avoid modifying this files.

Is there way, I can roll it by size?

Translate
Dave WattsCommunity ExpertCorrect answer
Community Expert
Jun 6, 2019 3:28 PM UTC

I don't think you have any control over the built-in log rolling functionality.

Dave Watts, Eidolon LLC

Translate
Dave Watts, Eidolon LLC