BookmarkSubscribeRSS Feed
EyalGonen
Lapis Lazuli | Level 10

Hi experts,

 

I want to use the sas-viya CLI with its "configuration" plug-in to create a new logging.level for the "identities" service. For example, to create a "com.sas" logger with level "DEBUG".  I could not find any example.

 

The only example I found is this https://documentation.sas.com/doc/en/sasadmincdc/v_056/calconfig/p0rtltqk08n6y6n1hts1n4ypqfao.htm#n0... but it seems irrelevant to what I seek.

 

I believe I know how to update an existing logger, let's say from INFO to DEBUG or vice versa, but not how to create a new logger for a service if it does not exist.

1 REPLY 1
gwootton
SAS Super FREQ

I think this is the file syntax you'd need to use the CLI to do this:

{
        "version": 2,
        "accept": "application/vnd.sas.configuration.config+json",
        "name": "configurations",
        "items": [
                {
                        "metadata": {
                                "isDefault": false,
                                "mediaType": "application/vnd.sas.configuration.config.logging.level+json;version=1",
                                "services": [
                                        "identities"
                                ]
                        },
                        "version": 1,
                        "level": "DEBUG",
                        "name": "com.sas"
                }
        ]
}
--
Greg Wootton | Principal Systems Technical Support Engineer

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Discussion stats
  • 1 reply
  • 99 views
  • 1 like
  • 2 in conversation