Difference between revisions of "ColdFusion Error Log"

From Hostek.com Wiki
Jump to: navigation, search
(Created page with "<h1>ColdFusion Error Log</h1> <p>In this wiki, you’ll learn how to view your sites ColdFusion server and application logs from within WCP.</p> <br /> <ol style="list-styl...")
 
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<h1>ColdFusion Error Log</h1>
+
==What is the ColdFusion Error Log?==
 +
<p>There are two types of logs that could contain information about your site. First on the list here is the Server error logs, and the second is logs created by using the cflog tag..
 +
<br /><br />
 +
<ul>
 +
<li>''''ColdFusion Server Errors'''': The errors reported here are errors that your site are throwing in ColdFusion. NOTE: Our production servers should not be used for development, so you should be doing your development work on your local machine. However, if your site is throwing an error, this will give you the ability to see that error.</li>
 +
<br />
 +
<li>''''cflog tag logging'''': NOTE: We strongly suggest to not use the "information" type. We also suggest to only set the type to "error" or "fatal" on the production servers. ColdFusion writes the logs to a system path. For security purposes, your cflog logs will only appear here if you have given the file name in the cflog tag the name of your domain, without the www. For example, if your domain is your_domain.com you would set the file attribute for the cflog tag like: file="your_domain.com"</li>
 +
</ul>
 +
<br />
  
 +
Let's go ahead and show how to view your domains server and application error logs.</p>
  
<p>In this wiki, you’ll learn how to view your sites ColdFusion server and application logs from within WCP.</p>
+
==How to access the ColdFusion error logs in WCP==
<br />
+
 
 +
We'll share the steps needed to get to the ColdFusion error logs below:
 +
<br /><br />
  
 
<ol style="list-style-type: decimal;">
 
<ol style="list-style-type: decimal;">
 +
<li><p>First login to your WCP control panel for the account the domain is under: https://wcp.hostek.com</p>
 +
[[file:wcp_url_secure.png]]
 +
<br /><Br />
 +
<p>If you have any issues with logging into WCP then please see our tutorials on [[Forgot_WCP_Password|recovering your password]] if necessary</p></li></ol>
  
<li>First login to your WCP control panel for the account the domain is under: https://wcp.hostek.com</li>
 
<ul>
 
<li>If needed see our guide on [https://wiki.hostek.com/How_to_login_to_WCP logging into WCP].</li>
 
</ul>
 
 
<br />
 
<br />
  
<li><p>In the '''ColdFusion'''’ section, click the '''Error Logs'''icon.</p>
+
<ol start="2" style="list-style-type: decimal;">
[[File:CFErrorButton.PNG]]
+
<li><p>Once logged into WCP if you have multiple domains you may need to select the appropriate domain to manage using the ''''Hosted Domains'''' drop-down in the top-right of the page as shown in the screenshot below:</p>
 +
[[file:wcp_change_domain.png]]
 +
<br /><br />
 +
</li></ol>
 +
 
 +
<br />
 +
 
 +
<ol start="3" style="list-style-type: decimal;">
 +
<li><p>Once in the correct domains WCP control panel click on the ''''ColdFusion Error Logs'''' icon under the ''''ColdFusion'''' section.</p>
 +
[[file:CFErrorButton.PNG]]
 +
<br /><br />
 
</li>
 
</li>
  
<li><p>Choose the type of error logs you wish to view ''''Server Error Logs'''' or ''''Application Error Logs''''</p></li>
 
  
<ol>
 
<li>''''Server Error Logs''''</li>
 
<ul>
 
  
<li><p>Choose the Server Error Logs tab to view error logs on the server level pertaining to your site.</p>
+
===View Server Error Logs===
 +
 
 +
<ol>
 +
<li><p>Choose the Server Error Logs tab..</p>
 
[[File:ServerLogs.PNG]]
 
[[File:ServerLogs.PNG]]
 
</li>
 
</li>
Line 30: Line 50:
 
<p>This will allow the error text to be wrapped within the text frame to prevent the need for scrolling to see the entire message.</p>
 
<p>This will allow the error text to be wrapped within the text frame to prevent the need for scrolling to see the entire message.</p>
 
[[File:WrapText.PNG]]
 
[[File:WrapText.PNG]]
 
  
 
<li><p>''''Hours''''</p></li>
 
<li><p>''''Hours''''</p></li>
Line 39: Line 58:
 
<p>This will populate the Server Error Logs text box with any related error logs.</p>
 
<p>This will populate the Server Error Logs text box with any related error logs.</p>
 
[[File:Update.PNG]]
 
[[File:Update.PNG]]
 
  
 
<li><p>''''Server Error Logs'''' text box.</p></li>
 
<li><p>''''Server Error Logs'''' text box.</p></li>
 
<p>This box will display the server error logs for your domain within the time frame you have choosen.</p>
 
<p>This box will display the server error logs for your domain within the time frame you have choosen.</p>
 
[[File:ServerLogs2.PNG]]
 
[[File:ServerLogs2.PNG]]
</ul>
+
</ol>
  
<li>''''Application Error Logs''''</li>
+
===View Application Error Logs===
<ul>
+
  
<li><p>Choose the Application Error Logs tab to view error logs on the application level pertaining to your site.</p>
+
<ol>
 +
<li><p>Choose the Application Error Logs tab.</p>
 
[[File:ApplicationLogs.PNG]]
 
[[File:ApplicationLogs.PNG]]
 
</li>
 
</li>
Line 74: Line 92:
 
<p>This box will display the server error logs for your domain within the time frame you have choosen.</p>
 
<p>This box will display the server error logs for your domain within the time frame you have choosen.</p>
 
[[File:ApplicationLogsText1.PNG]]
 
[[File:ApplicationLogsText1.PNG]]
</ul>
 
 
</ol>
 
</ol>
  
  
 
[[Category:WCP (Windows based Control Panel)]]
 
[[Category:WCP (Windows based Control Panel)]]

Latest revision as of 23:25, 5 June 2018

What is the ColdFusion Error Log?

There are two types of logs that could contain information about your site. First on the list here is the Server error logs, and the second is logs created by using the cflog tag..

  • 'ColdFusion Server Errors': The errors reported here are errors that your site are throwing in ColdFusion. NOTE: Our production servers should not be used for development, so you should be doing your development work on your local machine. However, if your site is throwing an error, this will give you the ability to see that error.

  • 'cflog tag logging': NOTE: We strongly suggest to not use the "information" type. We also suggest to only set the type to "error" or "fatal" on the production servers. ColdFusion writes the logs to a system path. For security purposes, your cflog logs will only appear here if you have given the file name in the cflog tag the name of your domain, without the www. For example, if your domain is your_domain.com you would set the file attribute for the cflog tag like: file="your_domain.com"


Let's go ahead and show how to view your domains server and application error logs.

How to access the ColdFusion error logs in WCP

We'll share the steps needed to get to the ColdFusion error logs below:

  1. First login to your WCP control panel for the account the domain is under: https://wcp.hostek.com

    Wcp url secure.png

    If you have any issues with logging into WCP then please see our tutorials on recovering your password if necessary


  1. Once logged into WCP if you have multiple domains you may need to select the appropriate domain to manage using the 'Hosted Domains' drop-down in the top-right of the page as shown in the screenshot below:

    Wcp change domain.png


  1. Once in the correct domains WCP control panel click on the 'ColdFusion Error Logs' icon under the 'ColdFusion' section.

    CFErrorButton.PNG


  2. View Server Error Logs

    1. Choose the Server Error Logs tab..

      ServerLogs.PNG

    2. 'Wrap Text'

    3. This will allow the error text to be wrapped within the text frame to prevent the need for scrolling to see the entire message.

      WrapText.PNG

    4. 'Hours'

    5. Allows you to choose the amount of hours you wish to view logs for. (1-24 hours)

      Hours.PNG

    6. Click the 'Update' button.

    7. This will populate the Server Error Logs text box with any related error logs.

      Update.PNG

    8. 'Server Error Logs' text box.

    9. This box will display the server error logs for your domain within the time frame you have choosen.

      ServerLogs2.PNG

    View Application Error Logs

    1. Choose the Application Error Logs tab.

      ApplicationLogs.PNG

    2. 'Wrap Text'

    3. This will allow the error text to be wrapped within the text frame to prevent the need for scrolling to see the entire message.

      WrapText.PNG


    4. 'Hours'

    5. Allows you to choose the amount of hours you wish to view logs for. (1-24 hours)

      Hours.PNG

    6. 'Purge Logs'

    7. The purge logs button allows you to clear out all application error logs for your domain.

      Purge.PNG

    8. Click the 'Update' button.

    9. This will populate the Server Error Logs text box with any related error logs.

      Update.PNG


    10. 'Application Logs' text box.

    11. This box will display the server error logs for your domain within the time frame you have choosen.

      ApplicationLogsText1.PNG