# How to change the log level?

**URL:** <https://forum.storj.io/t/how-to-change-the-log-level/19535>\
**Category:** FAQ\
**Created:** [August 31, 2022, 7:37pm UTC](https://forum.storj.io/t/how-to-change-the-log-level/19535 "2022-08-31T19:37:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreiker](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dreiker/32/1130_2.png) [@Dreiker](https://forum.storj.io/u/Dreiker)\
**Post date:** [August 31, 2022, 7:37pm UTC](https://forum.storj.io/t/how-to-change-the-log-level/19535/1 "2022-08-31T19:37:53Z")

</div>

Simple question,

How can we modify the loglevel of a node?

I’ve been searching the docs with little luck, but I’m sure that there is a parameter to modify the log level being printed. Any ideas?

---

<div class="post-metadata">

**Author:** ![peem](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/peem/32/6323_2.png) [@peem](https://forum.storj.io/u/peem)\
**Post date:** [August 31, 2022, 7:47pm UTC](https://forum.storj.io/t/how-to-change-the-log-level/19535/2 "2022-08-31T19:47:40Z")

</div>

> [@How to switch log levels](https://forum.storj.io/t/how-to-switch-log-levels/19506):
>
> Does someone know how to switch logs to warning/error level? my practics show that i need logs only when bad thing happen, and then log file is over 2-3 gb and no one text redaktor can open it. so i wold consider to see less but urgently needed information.

---

<div class="post-metadata">

**Author:** ![Dreiker](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dreiker/32/1130_2.png) [@Dreiker](https://forum.storj.io/u/Dreiker)\
**Post date:** [August 31, 2022, 7:50pm UTC](https://forum.storj.io/t/how-to-change-the-log-level/19535/3 "2022-08-31T19:50:51Z")

</div>

Thanks!

I managed to find the solution also for docker-compose. It’s quite simple:

> version: ‘3’  
> services:  
> storagenode:  
> image: storjlabs/storagenode:beta  
> restart: unless-stopped  
> ports:  
> - 28967:28967  
> volumes:  
> - ./config/identity:/app/identity  
> - ./data:/app/config  
> environment:  
> - WALLET=0x123456789  
> - EMAIL=EMAIL  
> - ADDRESS=external.url:28967  
> - BANDWIDTH=10TB  
> - STORAGE=1TB  
> **- STORJ\_LOG\_LEVEL=info**

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [August 31, 2022, 8:21pm UTC](https://forum.storj.io/t/how-to-change-the-log-level/19535/4 "2022-08-31T20:21:03Z")

</div>

`BANDWIDTH` is deprecated and not used. I’m not sure that `STORJ_LOG_LEVEL` even work.

---

<div class="post-metadata">

**Author:** ![Dreiker](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dreiker/32/1130_2.png) [@Dreiker](https://forum.storj.io/u/Dreiker)\
**Post date:** [August 31, 2022, 8:33pm UTC](https://forum.storj.io/t/how-to-change-the-log-level/19535/5 "2022-08-31T20:33:33Z")

</div>

I can confirm `STORJ_LOG_LEVEL` is working

Good to know that about `BANDWIDTH`, I pasted an old docker-compose from someone else’s blog!
