# Visual Studio Code and encoding issue?

**URL:** <https://community.openhab.org/t/visual-studio-code-and-encoding-issue/64748>\
**Category:** Beginners\
**Created:** [January 19, 2019, 1:56am UTC](https://community.openhab.org/t/visual-studio-code-and-encoding-issue/64748 "2019-01-19T01:56:49Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [May 23, 2020, 8:58pm UTC](https://community.openhab.org/t/visual-studio-code-and-encoding-issue/64748/7 "2020-05-23T20:58:23Z")

</div>

Logging is done by log4j.  
As I understand it, this appends to the current file.  
If you cut stuff away in service, that all goes wrong.

If this dissatisfies you, I think that’s something to take up with log4j developers.

It does provide a great deal of configuration options, rotation, etc. It’s hard to imagine why anyone would need to edit logfiles.  
Maybe this will help -

> [@Taming openHAB 2 Logging](https://community.openhab.org/t/taming-openhab-2-logging/13976):
>
> This post is OBE. See [Log4j2 Sample Config](https://community.openhab.org/t/log4j2-sample-config/33284) \*\*NOTE: With the build from November 10 #579 the location of all the files in runtime/karaf/etc have moved to userdata/etc. The instructions below have been updated accordingly. If you are running an older verison of openHAB (anything older than build #579), the location of the file is runtime/karaf/etc. As almost everyone is aware, openHAB 2 uses a completely different logging library and approach to logging than openHAB 1.x does, replacing logback wi…

---

_[View the full topic](https://community.openhab.org/t/visual-studio-code-and-encoding-issue/64748)._
