How to increase logging level on the CAS server in a runtime?
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;
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.
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.