danergo 37 Posted November 5, 2016 Posted November 5, 2016 Hello, I'm using Emby on Linux. Log files are put into /usr/lib/emby-server/data/log. Is it possible to configure emby to put these files into /var/log ? Thank you.
Luke 42077 Posted November 5, 2016 Posted November 5, 2016 Hi, welcome. It is not configurable at this particular moment.
danergo 37 Posted November 5, 2016 Author Posted November 5, 2016 Thanks, Luke. I've built Emby for myself anyway. Does it change anything? Is it only hardcoded in the code which is not yet configurable without recompiling, or completely bundled in mono libs somehow?
fc7 123 Posted November 5, 2016 Posted November 5, 2016 Thanks, Luke. I've built Emby for myself anyway. Does it change anything? Is it only hardcoded in the code which is not yet configurable without recompiling, or completely bundled in mono libs somehow? Which distribution are you using? Is there any reason why you are not using the official packages? By default Emby logs are stored in: /var/lib/emby-server/logs (if using the official packages -deb, rpm-). Also as a workaround you can symlink the actual log directory to any other place in the filesystem (provided that the destination has the right perms setup).
danergo 37 Posted November 6, 2016 Author Posted November 6, 2016 @fc7: Sure, there is a good reason for not using official repos: (http://download.opensuse.org/repositories/home:/emby/Debian_8.0) 1.) with official repo, emby keeps quitting after a certain amount of time. It doesn't do anything special, I've just left alone, and after a few hours, it started eating RAM, and the system killed it. 2.) subtitle accent chars: official repo cuts accent chars from my subtitles unless I manually convert every one of them to UTF8. With manual compilation, issue#1 does simple not exist, and for issue#2 I have my quick workaround solution. That's why I'm using it. It's always better to use a program that was compiled on the target hardware. Anyway, I'm satisfied with your solution, so, thank you
Luke 42077 Posted November 6, 2016 Posted November 6, 2016 What's your workaround for #2? Also be aware the server solution is platform independent so your statement of compilation on target platform does not apply.
danergo 37 Posted November 6, 2016 Author Posted November 6, 2016 True. I just remembered on some issues a from few years ago of CLR's and Mono's compatibility. Workaround is in file SubtitleEncoder.cs on line 797 in function GetSubtitleFileCharacterSet. It returns with string.Empty if the file has UTF8 encoding. I needed to remove that return, to proceed this function, and in this case, letters with accents are handled correctly. However, I'm not quite sure of the correctness of this workaround.
fkp 4 Posted November 7, 2016 Posted November 7, 2016 Hi, as my configuration works well ( Thanks ! ). is there an option preventing emby to log ( I have 1 GB in /var/lib/emby-server/logs ) ?
Luke 42077 Posted November 7, 2016 Posted November 7, 2016 No but it automatically deletes log files than 3 days old
fkp 4 Posted November 8, 2016 Posted November 8, 2016 I know that, but as my debian runs on a SSD, it is a lot of useless writes on it. if you can add an option to disable logging in a future version, i will appreciate it. Thanks. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now