The Solaris_LogServiceProperties class is defined in Solaris_Core1.0.mof. The Solaris_LogServiceProperties class has properties that control the following attributes of a log file:
Directory where the log file is written
Name of the log file
Size allowed for a log file before it is saved and renamed with a .1 file extension.
Number of log files you can have in the archive
Ability to write log data to syslog
,
the default logging system of the Solaris operating environment
To specify any of these attributes for an application that writes data to a log file, create a new instance of Solaris_LogServiceProperties and set the values of its associated properties. See Example 5-2 for detailed information about how to set the property values of the new instance.