# Save log file on local drive

**URL:** <https://community.openems.io/t/save-log-file-on-local-drive/50>\
**Category:** Uncategorized\
**Created:** [April 5, 2019, 8:01am UTC](https://community.openems.io/t/save-log-file-on-local-drive/50 "2019-04-05T08:01:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NilsReiners](https://community.openems.io/letter_avatar_proxy/v4/letter/n/a4c791/32.png) [@NilsReiners](https://community.openems.io/u/NilsReiners)\
**Post date:** [April 5, 2019, 8:01am UTC](https://community.openems.io/t/save-log-file-on-local-drive/50/1 "2019-04-05T08:01:14Z")

</div>

Hi,  
is OpenEMS actually permanently writing data in a database (log4j)? If so, how can I read it out? If not, how can I create a copy of the logged datastream on my computer?  
Thanks!  
Nils

---

<div class="post-metadata">

**Author:** ![stefan.feilmeier](https://community.openems.io/user_avatar/community.openems.io/stefan.feilmeier/32/2585_2.png) [@stefan.feilmeier](https://community.openems.io/u/stefan.feilmeier)\
**Post date:** [April 6, 2019, 7:53pm UTC](https://community.openems.io/t/save-log-file-on-local-drive/50/2 "2019-04-06T19:53:38Z")

</div>

Hi Nils,

log4j itself is only a logging processor. If you would want to write all log outputs to a file you would have to configure a service that does that - e.g. using some existing service or similar to how the Websocket-Api-Controller forwards all logs to the UI if you open that view in the UI. See [here](https://github.com/OpenEMS/openems/blob/develop/io.openems.edge.controller.api.websocket/src/io/openems/edge/controller/api/websocket/WebsocketApi.java#L151)

I suspect you are mainly interested in what the DebugLogController by default logs to the console. In that case you could just adapt the [run()-method](https://github.com/OpenEMS/openems/blob/develop/io.openems.edge.controller.debug.log/src/io/openems/edge/controller/debuglog/DebugLog.java#L74) accordingly.

If you want to log the values of all the Channels, you would have to [setup an InfluxDB database](https://docs.influxdata.com/influxdb/v1.7/introduction/installation) on your computer and configure the [Timedata.InfluxDB](https://github.com/OpenEMS/openems/blob/develop/io.openems.edge.timedata.influxdb/src/io/openems/edge/timedata/influxdb/InfluxTimedata.java) component via Apache Felix.

Regards,  
Stefan
