BookmarkSubscribeRSS Feed

How to increase logging level on the CAS server in a runtime?

Started ‎09-13-2019 by
Modified ‎09-13-2019 by
Views 4,241

Question

How to increase logging level on the CAS server in a runtime?

Answer

If you need to increase logging level on the CAS server without restarting the server itself, you can do that in SAS Studio as a CAS administrator or a member of the SAS Administrators group. All you need to do is execute a program shown below. Do not forget to change the logger name and set the desired logging level. In this example I will increase the logging level for App.cas.actions to TRACE:

 

cas mysession; 
proc cas;   
accessControl.assumeRole / adminRole="superuser"; 
builtins.log / 
level="TRACE" 
logger="App.cas.actions" 
onMain=true; 
run; 
quit; 
cas mysession terminate;

After the problem has been reproduced, set the logging level back to INFO with similar code:

 

 

cas mysession; 
proc cas;   
accessControl.assumeRole / adminRole="superuser"; 
builtins.log / 
level="INFO" 
logger="App.cas.actions" 
onMain=true; 
run; 
quit; 
cas mysession terminate;

 

Contributors
Version history
Last update:
‎09-13-2019 10:58 AM
Updated by:

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Tags