[Questions] Tailing Logs + Log Generation

Hello

I have two questions pertaining to logs.

FIRST:
I’m attempting to write my first agent and am having tremendous difficulties getting it to work. First, however, I’d like to find a better way to see what’s going on in the logs. I dislike having to download the logs each time through the Server preferences page. Is there a way to tail the Plex logs? I have found posts talking about log tailing, but it seems they are referring to older versions of Plex. These posts reference a “Logs” directory, but I have no such directory on my system (and am assuming it was removed in a previous release.)

SECOND:
I’ve been looking at other (simple) agents on GitHub. I’ve used the structure of some of these as a starting point for my agent. The basic structure isn’t complex. At a bare minimum you need an Info.plist file and a Python init file, contained in the correct directory structure. The Python init file is also simple in terms of requirements… you need to define a couple of methods and variables. When I download the logs I see files such as com.plexapp.agents.fanarttv.log. Looking at the code for the FanArtTV agent hosted on GitHub, it’s not too different from mine in terms of structure, yet I don’t see any log files generated for my agent. I do see my agent listed on the Agents page in the Server preferences, as well as in the dialog when creating a new library… so I know my agent seems to be loading correctly (though it’s not doing what I want it to do.) I find the lack of a log for my agent a bit strange, and I can’t seem to see any “log initialization” code in any of the agents I’m looking at on GitHub.

I’m running Plex 1.2.7.2987-1bef33a for the Mac.

Thanks!
– Cam

(clarified original post)

I use notepad++ on the log files in my synology plex logs folder and upon minimise it ask to reload…

https://github.com/ZeroQI/Hama.bundle/releases have Empty_Agent_template.bundle.7z as a blank agent starting point with a log example

Thanks for the template link. I’ll give that a try.

So you have an actual Logs folder? Are you running the latest version? On my mac I don’t have a logs folder (and I’ve looked through every folder in my entire Plex installation directory: ~/Library/Application Support/Plex Media Server/*)


First result on pageOS X

Using the Finder’s Go menu, select Go To Folder… then enter the following in the dialog box that pops up:

~/Library/Logs/Plex Media Server/

The log files will be located there.

Note: Server versions prior to 0.9.16.0 will have logs located at ~/Library/Logs/ instead.

Thank you! I see the logs.