Skip to content


Josh edited this page Jul 26, 2018 · 1 revision

Portal Logging

Evil Portal has logging on a portal by portal basis as of version 3.1. Logs are written to /{root or sd}/portals/{portal_name}/.logs. These logs can be viewed, cleared, or downloaded easily from the Evil Portal module in the web ui.

Viewing, Clearing, and Downloading logs

  1. Open the Evil Portal module on your pineapple.
  2. On the work bench, select "View" under the "Logs" column for the portal you want to view logs for.
    • You can also view logs if you click into the portal and click "View Log" in the upper right hand corner
  3. The log viewer modal should open up.
  4. Here you can clear the log (top right), download the log (bottom left), refresh the log (top left) and view the file size on disk (bottom right).

Writing logs

These instructions are the same for Basic and Targeted Portals.

  1. Open the Evil Portal module on your pineapple.
  2. Select the portal to want to write logs for
  3. Edit MyPortal.php
  4. In the onSuccess, onError, or handleAuthorization method add this line:
$this->writeLog("Hello World");

You can replace "Hello World" with whatever string you want to log. Now once that method is called you will see a new message in your log file!

Clone this wiki locally
You can’t perform that action at this time.