Subversion Repositories logviewer

Rev

Rev 8 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. /*
  4.  * ViaThinkSoft LogViewer
  5.  * Copyright 2018-2022 Daniel Marschall, ViaThinkSoft
  6.  *
  7.  * Licensed under the Apache License, Version 2.0 (the "License");
  8.  * you may not use this file except in compliance with the License.
  9.  * You may obtain a copy of the License at
  10.  *
  11.  *     http://www.apache.org/licenses/LICENSE-2.0
  12.  *
  13.  * Unless required by applicable law or agreed to in writing, software
  14.  * distributed under the License is distributed on an "AS IS" BASIS,
  15.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16.  * See the License for the specific language governing permissions and
  17.  * limitations under the License.
  18.  */
  19.  
  20. define('COUNT', 200);
  21.  
  22. define('MAXYEARS', 1);
  23.  
  24. define('apache_log_locations', array('/home/*/log/error*.log*', '/home/*/hosts/*/log/error*.log*', '/var/log/apache2/error*.log*'));
  25.  
  26. define('php_log_locations', array('/home/*/log/php_error*.log*', '/home/*/hosts/*/log/php_error*.log*', '/var/log/php/error.log*'));
  27.  
  28. // 0 = No source is displayed
  29. // 1 = Columns "source" (=logfile) and "module" (module)
  30. // 2 = Column "user" which tries to find out the user's home dir from the logfile
  31. define('SOURCE_STYLE', 2);
  32.  
  33. // Don't look at .gz files. But if you enable it, then it is important that you run insert_logs before log-rotating.
  34. define('IGNORE_GZ', false);
  35.  
  36. define('MAX_DAYS_LOGFILE', 30); // only read the logfiles of the last 30 days
  37.