Modify

Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#649 closed Frage (fixed)

Logging Funktion Frontend / Backend

Reported by: Torsten Riemer Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.0.0
Component: Shop Version: trunk
Keywords: Cc:
Blocked By: Blocking:

Description

Warum verlagern wir die "/admin/includes/classes/logger.php" nicht ins Frontend und benutzen Sie auch dort?

Derzeit verwenden wir Sie nur im Backend:

  if (STORE_PAGE_PARSE_TIME == 'true') {
    if (!is_object($logger))
      $logger = new logger;
    echo $logger->timer_stop(DISPLAY_PAGE_PARSE_TIME);
  }

Frontend:

// page parse time
if (STORE_PAGE_PARSE_TIME == 'true') {
  $parse_time = number_format((microtime(true)-PAGE_PARSE_START_TIME), 3);
  if ($parse_time >= STORE_PAGE_PARSE_TIME_THRESHOLD) {
    error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT) . ' [' . $parse_time . 's] ' . getenv('REQUEST_URI') . "\n", 3, DIR_FS_LOG.'mod_parsetime_'. date('Y-m-d') .'.log');
  }
}

Attachments (0)

Change History (3)

comment:1 by Gerhard Waldemair, 10 years ago

Milestone: modified-shop-2.00modified-shop-2.10
Version: 2.02.10

comment:2 by Gerhard Waldemair, 10 years ago

Resolution: fixed
Status: newclosed

In 9408:

fix #649 - remove using logger class

comment:3 by Torsten Riemer, 7 years ago

Milestone: modified-shop-2.1.0.0modified-shop-2.0.0.0
Version: 2.0.1.0trunk

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.