---
title: "<log> Element"
url: https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/log-descriptor-element
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# \<log> Element

A `log` element specifies the name of a log file for a server or service. A `log` element must be defined for each log file that can be [accessed remotely](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-administrative-sessions.md) by an administrative tool. Note that it is not necessary to define a `log` element for the values of the `Ice.StdErr` and `Ice.StdOut` properties.

This element may only appear as a child of a [server](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/server-descriptor-element.md), [icebox](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/icebox-descriptor-element.md) or [service](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/service-descriptor-element.md) element.

The following attributes are supported:

| **Attribute** | **Description** | **Required** |
| --- | --- | --- |
| `path` | The path name of the log file. If a relative path is specified, it is relative to the current working directory of the node. The node must have sufficient access privileges to read the file. | Yes |
| `property` | Specifies the name of a property in which to store the path name of the log file as given in the `path` attribute. | No |

Here is an example to demonstrate the use of this element:

```xml
<server id="MyServer" ...>
    <log path="${server}.log" property="LogFile"/>
</server>
```

## See Also

- [IceGrid Administrative Sessions](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-administrative-sessions.md)
- [Server Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/server-descriptor-element.md)
- [IceBox Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/icebox-descriptor-element.md)
- [Service Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/service-descriptor-element.md)
