Skip to content

Tool for adding logs in easy way for Magento 2, just by adding line in any place in code

Notifications You must be signed in to change notification settings

Alekseon/AlekseonLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlekseonLogger

With this tool you can easy add some logs in magento 2 in any place in code just by adding line:

\Alekseon\Logger\Logger::info($message, $fileName);

  • $message, can be any string
  • $fileName, is optional, if its not provided then log file is: "alekseon.log"

Your log will in file /var/log/$fileName

Installation

composer require alekseon/logger

Available methods

  • info($message, $fileName = null)
  • debug($message, $fileName = null)
  • notice($message, $fileName = null)
  • warning($message, $fileName = null)
  • error($message, $fileName = null)
  • critical($message, $fileName = null)
  • alert($message, $fileName = null)
  • emergency($message, $fileName = null)

About

Tool for adding logs in easy way for Magento 2, just by adding line in any place in code

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages