---
title: "Custom Logger Plug-in"
url: https://docs.zeroc.com/ice/3.8/plugins/custom-logger-plug-in
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).

# Custom Logger Plug-in

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

When you create a communicator in your own code, install a custom logger by setting `InitializationData.logger`.

A logger plug-in installs a custom logger through configuration, during communicator initialization. Use a logger plug-in when you don't create the communicator yourself, for example in an IceBox service, or when you want to install a custom logger without changing any source code.

## Installing a Custom Logger

You implement a logger plug-in in C++, as shown in the [C++ version of this page](https://docs.zeroc.com/ice/3.8/plugins/custom-logger-plug-in/cpp.md), and load its shared library through configuration:

```config
Ice.Plugin.CustomLogger=customlogger,0:createCustomLoggerPlugin
```

With `customlogger,0`, Ice loads `customlogger0.dll` on Windows, `libcustomlogger.so.0` on Linux, and `libcustomlogger.0.dylib` on macOS. See [Ice.Plugin.name](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/python.md#ice.plugin.name) for the format of this entry point.

## See Also

- [Custom Loggers](https://docs.zeroc.com/ice/3.8/administration/logger-facility/custom-loggers/python.md)
- [The Per-Process Logger](https://docs.zeroc.com/ice/3.8/administration/logger-facility/per-process-logger/python.md)
- [Plug-in Facility](https://docs.zeroc.com/ice/3.8/plugins/plug-in-facility/python.md)
- [Ice.Plugin.\*](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/python.md)
