Download the PHP package gelembjuk/logger without Composer

On this page you can find all versions of the php package gelembjuk/logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package logger

Logger

PHP Package for easy logging and error catching. FileLogger class based on Psr/Log helps to filter what to log. ErrorScreen class helps to catch PHP Warnings and Fatal errors and display correct error screen to a user. ApplicationLogger is a trait to include logger in different classes very easy

Installation

Using composer: gelembjuk/logger

Configuration

Configuration is done in run time with a constructor options (as hash argument)

Configure FileLogger

logfile path to your log file (where to write logs) groupfilter list of groups of events to log. all means log everything. Groups separated with | symbol

Configure ErrorScreen

catchwarnings - (true|false) . If true then user error handler is set to catch warnings

catchfatals - (true|false) . If true then fatal errors are catched. Use to log error and show normal error screen

catchexceptions - (true|false) . If true then uncatched exceptions will be catched by the object. Use this to catch exceptions missed in any try {} catch block

showwarningmessage - (true|false) . If true then error screen is displayed in case of warning. If is false then error is only logged

showfatalmessage - (true|false) . Display error screen for fatal errors. If false then only log is dine. User will see standard fatal error in this case

viewformat - set vaue for the viewformat variable. Possible values: html, json, xml, http . html is default value

showtrace - (true|false). Switcher to know if to show error trace for a user as part of error screen

commonerrormessage - string Common error message to show to a user when error happens

logger - Object of FileLogger class

loggeroptions - Options to create new FileLogger object

Usage

FileLogger

ApplicationLogger trait

ErrorScreen

Author

Roman Gelembjuk (@gelembjuk)


All versions of logger with dependencies

PHP Build Version
Package Version
Requires psr/log Version 1.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gelembjuk/logger contains the following files

Loading the files please wait ....