Jump to content

Log file (re)location


Recommended Posts

Posted

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.

Posted

Hi, welcome. It is not configurable at this particular moment.

Posted

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?

Posted

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).

Posted

@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 :)

Posted

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.

Posted

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.

Posted

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 ) ?

Posted

No but it automatically deletes log files than 3 days old

Posted

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.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...