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.
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"
}
]
}
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"
}
]
}
Thanks @gwootton !
One last question about this: I ran the "sas-viya" CLI and it created the logging.level configuration but how do I know if it succeeded? or not programmatically? Is there a way to capture the HTTP response code from the "sas-viya" CLI or does it return some kind of other return code?