Download the PHP package elijahcruz12/eclogger without Composer

On this page you can find all versions of the php package elijahcruz12/eclogger. 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 eclogger

ECLogger

ECLogger is a Composer Package that allows you to create log files for you to use in your project.

Installation

The easiest way to install is using Composer Composer Globally installed: composer require elijahcruz12/eclogger Composer.phar file: php composer.phar require elijahcruz12/eclogger

Usage

There are two ways you can use ECLogger, Either using a single file, or by using multiple files. Both ways work differently than the other (as of now). There are also different log types you can use.

The Different Log Types There Are

There are 8 different types of logs you can use. These are the RFC 3339 Standards. They are: `

Log Format

The Log Format is Fairly Simple. Is works like this: DATE_ATOM . LOG_TYPE . LOG_MESSAGE This causes each log entry to look like this: 2013-04-12T15:52:01+00:00 ERROR: This is an error.

Single File Usage

If you are using one file to store all your log files, you can choose the file using the ecSingleLog class: Let's break this down for you so you can understand what is going on here: $log->file('single.log');= This function selects the file you want to use. You can use any file. This also allows you to use a file in a subdirectory. $log->error('This is an error message');= With this function, you can log an error into the file. Each of the log types has a different function based on their own name (eg.debug(),alert(), ornotice`).

Multi File Usage

If you need or want to use a different file for each log type, you can do so using the ecMultiLog class.

Let's break this down to make this easier. $log->newFallbackLog('fallback.log');= This log allows you to have a log file to use for any log types that haven't been initialized. In the case of the script used above, if you were to add the line$log->newLog('debug', 'This is a debug log.');` before the closing php tag, it would result in that debug log going into the fallback log file.

Functions Reference

The function reference is a work in progress

Single File

Function Description
file() Opens file to use as the single log, creates file if it does not exist.
debug() Adds a debug log to the single log file.
info() Adds an info log to the single log file.

All versions of eclogger with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
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 elijahcruz12/eclogger contains the following files

Loading the files please wait ....