---
title: "Built-in Loggers"
url: https://docs.zeroc.com/ice/3.8/administration/logger-facility/built-in-loggers
language: python
docs_index: https://docs.zeroc.com/llms.txt
---

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

# Built-in Loggers

Programming language: Python. Other languages: [C++](https://docs.zeroc.com/ice/3.8/administration/logger-facility/built-in-loggers/cpp.md), [C#](https://docs.zeroc.com/ice/3.8/administration/logger-facility/built-in-loggers/csharp.md), [Java](https://docs.zeroc.com/ice/3.8/administration/logger-facility/built-in-loggers/java.md), [JavaScript](https://docs.zeroc.com/ice/3.8/administration/logger-facility/built-in-loggers/js.md), [MATLAB](https://docs.zeroc.com/ice/3.8/administration/logger-facility/built-in-loggers/matlab.md), [PHP](https://docs.zeroc.com/ice/3.8/administration/logger-facility/built-in-loggers/php.md), [Ruby](https://docs.zeroc.com/ice/3.8/administration/logger-facility/built-in-loggers/ruby.md), [Swift](https://docs.zeroc.com/ice/3.8/administration/logger-facility/built-in-loggers/swift.md).

Ice provides a file logger and, depending on the language mapping and platform, loggers that write to a system logging service. You select one of these loggers with properties.

## File Logger

Setting the [Ice.LogFile](https://docs.zeroc.com/ice/3.8/property-reference/ice-properties/python.md#ice.logfile) property selects the file-based logger. This logger appends its messages to the specified file and creates the file if necessary.

[Ice.LogFile.SizeMax](https://docs.zeroc.com/ice/3.8/property-reference/ice-properties/python.md#ice.logfile.sizemax) enables log file rotation: when the log file reaches the configured size, the file logger archives it under a new name and starts a new file.

## Syslog Logger

On Linux and macOS, you can activate a logger that logs via the Unix `syslog` implementation by setting [Ice.UseSyslog](https://docs.zeroc.com/ice/3.8/property-reference/ice-properties/python.md#ice.usesyslog) to `1`.

## Systemd Journal Logger

On Linux, you can activate a logger that logs to the systemd journal by setting [Ice.UseSystemdJournal](https://docs.zeroc.com/ice/3.8/property-reference/ice-properties/python.md#ice.usesystemdjournal) to `1`. This logger is available only when Ice is built with systemd support.

## OSLog Logger

On macOS, you can activate a logger that logs using [OSLog](https://developer.apple.com/documentation/os/oslog) by setting [Ice.UseOSLog](https://docs.zeroc.com/ice/3.8/property-reference/ice-properties/python.md#ice.useoslog) to `1`.

## See Also

- [Service Logging Considerations](https://docs.zeroc.com/ice/3.8/background-servers/service-logging-considerations.md)
