Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Administration Reference

- Previous: Subelements
- Next: M

### Attributes

The following table describes attributes for the `log-service` element.

Table 1–74 `log-service` Attributes

Attribute | Default | Description
--- | --- | ---
`file` | `server.log` in the directory specified by the `log-root` attribute of the domain element | (optional) Overrides the name or location of the server log. The file and directory in which the server log is kept must be writable by the user account under which the server runs. An absolute path overrides the `log-root` attribute of the domain element. A relative path is relative to the `log-root` attribute of the domain element. If no `log-root` value is specified, it is relative to domain-dir`/config` .
`use-system-logging` | `false` | (optional) If `true`, uses the UNIX `syslog` service to produce and manage logs.
`log-handler` | none | (optional) Specifies a custom log handler to be added to end of the chain of system handlers to log to a different destination.
`log-filter` | none | (optional) Specifies a log filter to do custom filtering of log records.
`log-to-console` | `false` | (optional) Deprecated and ignored.
`log-rotation-limit-in-bytes` | `2000000` | (optional) Log files are rotated when the file size reaches the specified limit.
`log-rotation-timelimit-in-minutes` | `0` | (optional) Enables time-based log rotation. The valid range is `60` minutes (1 hour) to `14400` minutes (10*24*60 minutes or 10 days). If the value is zero, the files are rotated based on the size specified in `log-rotation-limit-in-bytes`. If the value is greater than zero, `log-rotation-timelimit-in-minutes` takes precedence over `log-rotation-limit-in-bytes` .
`alarms` | `false` | (optional) Deprecated and ignored.

- Previous: Subelements
- Next: M

- © 2010, Oracle Corporation and/or its affiliates