Download the PHP package xaraya/logconfig without Composer

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

Overview

What is it?

The LogConfig module lets you configure the Xaraya logging system. It is essentially a wrapper for the logging parts of the configuration files found at

In other words, anything this module does can be done by directly editing those two files. Nonetheless, unless you know what you're doing, using this module to configure logging is the recommended way to go.

How to use it?

You can:

The loggers are shipped with the Xaraya core and are located in lib/xaraya/log/loggers. You can, of course, run several loggers simultaneously, but be aware that this many degrade performance, not to mention using up disk space faster for loggers that write to disk or database.

The logging system depends on the timezone settings found [here](). You should set the Host Timezone to the timezone you want the timestamps of the logged messages to show.

Fallback System:

If logging is set to on in this module and none of the loggers are active, then there is a fallback system that will log to a text file. This fallback can be configured under the logging tab in the modifyconfig page of the base module, found [here]().

Message levels

The Xaraya loggers recognize the following message levels. Each logger can be configured to track one or more of these message levels.

Name Numeric Value Application
EMERGENCY 1 Tracks errors that call for immediate intervention
ALERT 2 Tracks errors that call for intervention
CRITICAL 3 Tracks errors that result in major consequences for processing
ERROR 4 Tracks behavior that is unexpected or undesired, with minor consequences for processing
WARNING 5 Tracks anomalities or abnormal behavior without consequences for processing
NOTICE 6 Tracks high level core processes and main module processes
INFO 7 Tracks low level core and module processes
DEBUG 8 Used for fine grained debugging

Available loggers

The loggers are all subclasses of a parent xarLogger class, found at lib/xaraya/log/loggers/xarLogger.php. This class is responsible for:

Notes on the errorlog logger

This logger writes to PHP's error log, which can be accessed by the PHP funcion error_log(), as described here.

Notes on the mail logger

The mail logger will send you an email with the error message and some additional information. You cannot edit the lay-out and content of the message via the mail templates as the message is created by PHP code.

Because of the vagaries and continuously changing (improving) standards for email and the major email providers, it is recommended that you first test Xaraya's email functionality in your environment and make sure everything works. You can do this by sending test messages from the mail module. Helpful information can also be had by setting the mail module's debug functionality, which is found on the mail module's modifyconfig page [here]().

Notes on the SQL logger

The SQL logger needs a database table to write its data to. This table should be added to your database. For MySQL you can use the following code:

The SQL logger will log all messages to this database table. Currently, there is no interface to manage the entries. In configuring this logger, make sure that your entry for the SQL Table parameter corresponds to the name of the database table you have created.

Notes on the syslog logger

Depending on its configuration, this logger writes to a server log. as described here. It should be noted that different server operating systems have different types of logs. We make no claims about which of this loggers configurations will work in any given case.

Further Information

To be added on occasion!

 LogConfig Module Overview
 Version 1.0.0  2022-5-01


All versions of logconfig with dependencies

PHP Build Version
Package Version
No informations.
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 xaraya/logconfig contains the following files

Loading the files please wait ....