With update 15 to CF 2018 and the removal of the t...
# adobe
j
With update 15 to CF 2018 and the removal of the tools to search and view the log files in the ColdFusion administrator, how does one go about reviewing the log files and managing them now?
1
m
I'm using Universal Viewer to pull logs and read them. The team is working on a replacement to the viewer, but I've not seen an ETA yet.
j
Ok. @Mark Takata (Adobe) Thank you.
r
@Mark Takata (Adobe) As I’ve noted on an earlier thread, the challenge for some of us is that we don’t have access to the logs on the productions servers based on file access restrictions in the production environment. Hopefully whatever approach the team is working on accounts for that? It’s what made the ability to manage and view the log files through the CF Admin particularly valuable. And really, I care more about viewing than managing in that context.
2
e
you can write your own logger and then dump the result to a database or file (s) using cfdump, loop. Sure its not as easy as just having a file created for you, but you do have granular control over what you are logging and the format.
r
Sure, for stuff within the applications but that doesn’t get us access to stuff being logged by the CF Server application layers?
e
pretty sure you can probe around and see what you can access via somehing like:
Copy code
<%@ page import="java.util.Properties" %>
<%@ page import="java.util.Set" %>

<%
Properties p = System.getProperties();

Set<String> keys = p.stringPropertyNames();
for (String key : keys)
  out.println(key + " : " + p.getProperty(key));

%>  Then you can query each property individually, and then write your code accordingly.