Web EspoCRM-LogViewer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • criffoh
    Member
    • Jun 2020
    • 55

    Web EspoCRM-LogViewer

    In some cases I need to share log files in real time or see log without root access, so I had adapted this code to get log of current day:

    See quickly EspoCRM logs. Contribute to porquero/EspoCRM-LogViewer development by creating an account on GitHub.


    Configuration

    Change path in set.php file
    Code:
    <?php
    
    $today = date('Y-m-d');
    $data = "file_path='[ESPOCRM_PATH]/data/logs/espo-{$today}.log'\n" .
    "vscode_path_search='/srv/www/spaces/current/'\n" .
    "vscode_path_replace='C:\doll\spaces\'\n";
    
    file_put_contents('php-error-log-viewer.ini', $data);
    The default user and password are
    DEV
    12345

    Make sure that php-error-log-viewer.ini is writeable


    credits: https://github.com/schuhwerk/php-error-log-viewer
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    #2
    criffoh
    thank you for your input, but we have to remember that EspoCRM already implemented App Logger which is available for admins

    Comment

    • criffoh
      Member
      • Jun 2020
      • 55

      #3
      Yes! but in some cases it is necessary to give acces to external users without access to EspoCRM!

      This script is useful for this.

      Comment

      Working...