Project

General

Profile

Feature #586

Add logger to the core if we don't have it

Added by Vasily Bezruchkin almost 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Category:
Libraries
Target version:
Start date:
January 19, 2013
Due date:
% Done:

100%

Estimated time:

Description

Sometimes it's useful to write logs while debugging some parts of the code, specifically related to the payment systems, etc.

Here is the nice implementation of simple logger file:
https://github.com/InfinityWebMe/KLogger

History

#1

Updated by Vasily Bezruchkin over 6 years ago

  • Status changed from New to Resolved
  • Target version changed from 3.0.0.alpha to 2.3.7
  • % Done changed from 0 to 100

Implemented. Use as follows:
iaDebug::initLogger();

iaDebug::$log->logInfo('print_necessary_info');

#2

Updated by Batyr Mackenov over 6 years ago

Vasily Bezruchkin wrote:

Implemented. Use as follows:
iaDebug::initLogger();

iaDebug::$log->logInfo('print_necessary_info');

Below is the correct call:

iaDebug::initLogger();
iaDebug::$logger->logInfo('print_necessary_info');

#3

Updated by Batyr Mackenov over 6 years ago

Updated the way of calling the logger in convenience purposes.

iaDebug::logger()->logInfo('print_necessary_info');

Also available in: Atom PDF