# PEngines and logging?

**URL:** <https://swi-prolog.discourse.group/t/pengines-and-logging/700>\
**Category:** Help!\
**Created:** [May 21, 2019, 11:09pm UTC](https://swi-prolog.discourse.group/t/pengines-and-logging/700 "2019-05-21T23:09:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prodog](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@prodog](https://swi-prolog.discourse.group/u/prodog)\
**Post date:** [May 21, 2019, 11:09pm UTC](https://swi-prolog.discourse.group/t/pengines-and-logging/700/1 "2019-05-21T23:09:19Z")

</div>

I’m using: SWI-Prolog version 8.0.2 on Ubuntu Linux 18.04 with a PEngines server.

My background with web sites is the typical Node.JS or .NET server, where the server by default keeps certain logs (Request date/time, IP address, etc.) and most people usually upgrade to some popular deluxe logging package sooner rather than later.

Some questions:

- Where can I read up on (if any) default logging PEngines does for each query that is thrown at it?

- Are there any logging statistics available from PEngines, via a predicate it exposes I should call from code or via a web page in the Admin interface?

- How are those of you that have PEngines installations doing logging and if you are using an SWI-Prolog package to do it, which one?

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [May 22, 2019, 7:14am UTC](https://swi-prolog.discourse.group/t/pengines-and-logging/700/2 "2019-05-22T07:14:33Z")

</div>

The good old PEngines code is basically unmaintained. I still wonder why you keep referring to it. Only the core pengines library that is part the the SWI-Prolog distribution and SWISH are being actively developed and maintained.

---

<div class="post-metadata">

**Author:** ![prodog](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@prodog](https://swi-prolog.discourse.group/u/prodog)\
**Post date:** [May 22, 2019, 10:48am UTC](https://swi-prolog.discourse.group/t/pengines-and-logging/700/3 "2019-05-22T10:48:35Z")

</div>

Hi Jan, sorry I didn’t quite understand that.

Are you saying that I should not have used the code I found in the PEngines GitHub repository to start my project? But that I should have extracted the PEngines code base that is in the SWI-Prolog or SWISH GitHub repositories?

I started my PEngines project by using the code found in this repository:

> **[SWI-Prolog/packages-pengines](https://github.com/SWI-Prolog/packages-pengines)**
>
> Pengines: Prolog engines. Contribute to SWI-Prolog/packages-pengines development by creating an account on GitHub.

and then I run a modified `run.pl` from that code base using `swipl`. Are you saying that there is a complete PEngines dir with `apps`, `web`, etc. sub-directories directly in the SWI-Prolog repository (or Swish repository), that I should have used instead?

By the way, I added a comment to the Swish/chat.html GitHub thread after you closed the issue.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [May 22, 2019, 11:15am UTC](https://swi-prolog.discourse.group/t/pengines-and-logging/700/4 "2019-05-22T11:15:06Z")

</div>

You’re making me utterly confused. packages-pengines is part of the normal Prolog installations and has no `run.pl`, so you cannot modify that. It just contains the core `pengines.pl` library, `pengines.js` and a few helpers. It is ok to use that, but it doesn’t provide any scratchpads to which you are referring, no admin, no logging, no nothing. I think you refer to [https://github.com/SWI-Prolog/pengines](https://github.com/SWI-Prolog/pengines). I’ve explained the relation between the three pengines related packages (the above and swish) several times in this discussion, so please read these carefully.

---

<div class="post-metadata">

**Author:** ![prodog](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@prodog](https://swi-prolog.discourse.group/u/prodog)\
**Post date:** [May 22, 2019, 11:22am UTC](https://swi-prolog.discourse.group/t/pengines-and-logging/700/5 "2019-05-22T11:22:19Z")

</div>

Sorry for the confusion Jan.
