You can use the SET
LOG CFG command of the IOMOPERATE procedure to replace or modify the
logging configuration.
You can modify the logging
configuration to do the following:
-
configure a logger with a new or
existing appender
-
-
-
Note: SAS ignores the IMMUTABILITY
settings of a logger when an administrator modifies a configuration
file using the IOMOPERATE procedure or SAS Management Console.
To modify the logging
configuration, you create a logging configuration file only with the
changes that you would like to make. A complete configuration file
is not required. The configuration file must contain the <?xml>,
<logging:configuration>, and
</logging:configuration> elements. Any time you modify the logging configuration,
the <logging:configuration> element must have the
modify
attribute set to "TRUE". If you are removing
an appender, the
remove
attribute on the
appender element must be set to "TRUE". Here is an example of a logging
configuration file that is used to associate an existing appender
with a logger:
<?xml version="1.0"?>
<logging:configuration
xmlns:logging="http://www.sas.com/xml/logging/1.0/" modify="true">
<logger name="App.Program">
<appender-ref ref="newcons"/>
</logger>
</logging:configuration>
To replace the logging
configuration, you create a new logging configuration file. The <logging:configuration>
element must have the modify attribute set to "FALSE" or the modify
attribute must not be present in the <logging:configuration>
element.
When you modify or replace
the logging configuration, the IOMOPERATE procedure might look similar
to this:
proc iomoperate uri="iom://localhost:15976;Bridge;TRUSTEDSAS" type=METADATA;
set log cfg="newcfg.xml";
quit;
For
more information, see “IOMOPERATE Procedure” in
SAS Intelligence Platform: Application Server Administration Guide on
http://support.sas.com.