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,180

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;

 

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

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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