NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 27 28 29 30 31 … 34 Next »
Where are logs saved?

 
  • 0 Vote(s) - 0 Average
Where are logs saved?
wmarler
Offline

Junior Member

United States
Posts: 17
Threads: 6
Joined: Apr 2020
#1
2020-04-16, 05:49 PM
I see that I can download the logs from the webui 'About' page. 

This gives me a .zip file. Functional, but awkward; Where are the logs saved in realtime? Is there a way to watch them (e.g. 'tail -f')? I don't see output going to syslog, or any files in /opt/nextpvr that are log files .
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2020-04-16, 05:50 PM
(2020-04-16, 05:49 PM)wmarler Wrote: Where are the logs saved in realtime? Is there a way to watch them (e.g. 'tail -f')?

Does this help ... https://github.com/sub3/NextPVR/wiki/components
.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,091
Threads: 957
Joined: May 2006
#3
2020-04-16, 06:00 PM
You can't watch them in real time with tail because of caching, you need to add the line VERBOSE_LOGGING=true to the
/etc/nextpvr-server.conf file

The logs aren't that useful for real time debugging with tail though there is a lot of spam and verbose logging makes it worse.

Martin
wmarler
Offline

Junior Member

United States
Posts: 17
Threads: 6
Joined: Apr 2020
#4
2020-04-16, 06:06 PM
(2020-04-16, 05:50 PM)Graham Wrote:
(2020-04-16, 05:49 PM)wmarler Wrote: Where are the logs saved in realtime? Is there a way to watch them (e.g. 'tail -f')?

Does this help ... https://github.com/sub3/NextPVR/wiki/components
.

 yes it did, thank you. I found them in /var/opt/nextpvr/logs
wmarler
Offline

Junior Member

United States
Posts: 17
Threads: 6
Joined: Apr 2020
#5
2020-04-16, 06:24 PM
(2020-04-16, 06:00 PM)mvallevand Wrote: You can't watch them in real time with tail because of caching,  you need to add the line VERBOSE_LOGGING=true  to the
/etc/nextpvr-server.conf file

The logs aren't that useful for real time debugging with tail though there is a lot of spam and verbose logging makes it worse.

Martin


I'm not sure I follow. 'tail -f /var/opt/nextpvr/logs/nrecord.log' shows me output that's pretty darn close to realtime -- or at least close enough to realtime for my purposes.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#6
2020-04-16, 06:34 PM
When NextPVR writes to it's logs files, for performance reasons it doesn't force the operating system to flush each log message to disk (unless the environment variable VERBOSE_LOGGING=true is set). The operating system will often cache up a few of those messages before commiting them to disk, so tailing the log may be a little behind (unless the file system is smart enough to know, and it gives you the stuff not yet flushed).

When the user hits the log files button, it forces the logging to be commited to disk, so that the logs include the very latest messages.

Tailing the logs is probably find if you just want to see vaguely what it's up to, and don't mind if it's a little behind.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  adapter0-DVB-T-channels.conf not saved Pji 9 2,896 2021-02-27, 09:12 PM
Last Post: brozelle
  Post logs when NPVR Crashes flyingsubs 42 9,772 2019-10-22, 04:02 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode