# \[FEAT\] Provide environment variable LOG\_LEVEL that adjusts docker log level

**URL:** https://forums.plex.tv/t/feat-provide-environment-variable-log-level-that-adjusts-docker-log-level/903773
**Category:** Plex Media Server
**Tags:** server-docker
**Created:** [January 27, 2025, 6:46pm UTC](https://forums.plex.tv/t/feat-provide-environment-variable-log-level-that-adjusts-docker-log-level/903773 "2025-01-27T18:46:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deanwsmith](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/deanwsmith/32/248792_2.png) [@deanwsmith](https://forums.plex.tv/u/deanwsmith)
#### Post date: [January 27, 2025, 6:46pm UTC](https://forums.plex.tv/t/feat-provide-environment-variable-log-level-that-adjusts-docker-log-level/903773/1 "2025-01-27T18:46:07Z")

</div>

Server Version#: 1.41.3.9314  
Player Version#: 4.141.0

My Plex Media Server is running in docker using a compose file. It is stable and robust.

My feature request is to implement an environment variable `LOG_LEVEL` that supports the standard values - CRITICAL, ERROR, WARN, INFO, DEBUG - for logging to the standard docker log.

I can access the Plex specific logs under `plex/config/Library/Application Support/Plex Media Server/Logs/` thanks to the volume mapping in my compose file, but my docker logs are a mixture of container and application details.

For example, the last few days of logs looks like this:

> **A few days of logs**
>
> ```auto
> $ docker compose --file /srv/plex/compose.yaml logs | tail
> plex | No data written!
> plex | udc input failed with 1011
> plex | udc input failed with 1011
> plex | udc input failed with 1011
> plex | udc input failed with 1011
> plex | udc input failed with 1011
> plex | udc input failed with 1011
> plex | udc input failed with 1011
> plex | udc input failed with 1001
> plex | udc input failed with 1011
> plex | udc input failed with 1011
> plex | decoder returned no data
> plex | No data written!
> plex | The '--scan' operation is deprecated and will be removed in future versions of Plex Media Server.
> plex | The '--scan' operation is deprecated and will be removed in future versions of Plex Media Server.
> plex | The '--scan' operation is deprecated and will be removed in future versions of Plex Media Server.
> plex | The '--scan' operation is deprecated and will be removed in future versions of Plex Media Server.
> plex | The '--scan' operation is deprecated and will be removed in future versions of Plex Media Server.
> plex | The '--scan' operation is deprecated and will be removed in future versions of Plex Media Server.
> plex | The '--scan' operation is deprecated and will be removed in future versions of Plex Media Server.
> plex | The '--scan' operation is deprecated and will be removed in future versions of Plex Media Server.
> plex | The '--scan' operation is deprecated and will be removed in future versions of Plex Media Server.
> 
> ```

If I restart the container, I actually see the container logs I care about:

> **After restart**
>
> ```auto
> $ docker compose --file /srv/plex/compose.yaml logs
> plex | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
> plex | [s6-init] ensuring user provided files have correct perms...exited 0.
> plex | [fix-attrs.d] applying ownership & permissions fixes...
> plex | [fix-attrs.d] done.
> plex | [cont-init.d] executing container initialization scripts...
> plex | [cont-init.d] 40-plex-first-run: executing...
> plex | Plex Media Server first run setup complete
> plex | [cont-init.d] 40-plex-first-run: exited 0.
> plex | [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing...
> plex | [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
> plex | [cont-init.d] 50-plex-update: executing...
> plex | [cont-init.d] 50-plex-update: exited 0.
> plex | [cont-init.d] done.
> plex | [services.d] starting services
> plex | Starting Plex Media Server.
> plex | [services.d] done.
> plex | Critical: libusb_init failed
> 
> ```

It would be very useful if PMS could follow the container standards and honour the log level as well. I realise this may be a low priority but it would make monitoring the server easier.

Thank you for the consideration.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [April 27, 2025, 6:46pm UTC](https://forums.plex.tv/t/feat-provide-environment-variable-log-level-that-adjusts-docker-log-level/903773/2 "2025-04-27T18:46:31Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
