Download the PHP package tobento/app-logging-web without Composer

On this page you can find all versions of the php package tobento/app-logging-web. 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 app-logging-web

App Logging Web

The App Logging Web package provides a web interface for browsing and inspecting log entries created by the tobento-ch/app-logging package.

This package is especially useful when:

Zero-Config Bootstrapping

The Logging Web system works out-of-the-box with sensible defaults.

Simply register the Logging Web Boot in your application, and the full log browsing UI becomes available immediately - no additional configuration required.

All built-in features are automatically discovered, registered, and ready to use.
You can inspect logs, browse log cards, and monitor application logs without writing any custom code.

You only need to customize configuration if you want to override defaults such as:

Table of Contents

Getting Started

Install the latest version of the App Logging Web package by running:

Requirements

Documentation

App

Check out the App Skeleton if you are using the skeleton.

You may also check out the App to learn more about the app in general.

Logging Web Boot

The LoggingWeb boot does the following:

You may also install the App Backend and boot the logging web within the backend application.

Logging Web Config

The configuration for the logging web is located in the app/config/logging-web.php file at the default App Skeleton config location.
There you can configure the available features and other options.

Features

Logs Feature

The Logs feature provides a page for viewing and inspecting log entries created by the tobento-ch/app-logging package.

Config

In the logging web config you can enable and configure this feature:

ACL Permissions

If you are using the App Backend, you can assign this permission to roles or users in the backend interface.

Logs Cards Feature

The Logs Cards feature provides cards that display log-related information using the app-card package.
These cards can be added to any card collection, such as the App Backend Dashboard Cards or any other custom card groups.

Config

In the logging web config you can enable and configure this feature:

The ACL check is performed before cards are added.
If ACL is enabled and the user does not have the logs permission, the cards are simply not added to the collection.

Customize Cards

You may customize the cards added by this feature by extending or replacing the LogsCards feature.
The feature uses the configureCards() method to define which cards are created.

To override or extend the cards, create your own feature:

Then register your custom feature instead of the default one:

This allows you to fully control which cards appear, their order, and how they behave.

For more details on creating and customizing cards, see the app-card documentation.

Monitor Logs Feature

The Monitor Logs feature wraps the application loggers and stores log entries in the LogRepositoryInterface for later inspection.
It depends on the Logging boot and is applied automatically when enabled.

Config

In the logging web config you can enable and configure this feature:

This feature ensures that log entries are captured and made available for viewing in the Logs Feature web interface.

Console

Purge Logs Command

Use the following command to purge monitored logs:

Purge logs older than 24 hours

Available Options

Option Description
--hours=24 The number of hours to retain log data.
--level=debug Purges only logs with the specified level.
--appId[] Purges only logs belonging to the specified app IDs.

If you would like to automate this process, consider installing the App Schedule bundle and using a command task:

Alternatively, you may install the App Task bundle and use the Command Task Registry to register this command.

Learn More

Monitor Logs From Another App

When working with multiple Apps, you may monitor logs across all of them.
To do so, ensure that each app uses the same log repository connection in its config file.

For example, in an app using the App Backend, you might configure:

Next, in another app where you only want to monitor logs:

Finally, in the database config file of both apps, configure the shared:storage database:

By using a shared storage connection, all monitored logs from every app are stored in the same repository, allowing them to be viewed centrally in the Logs Feature web interface.

Credits


All versions of app-logging-web with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
tobento/app Version ^2.0
tobento/app-card Version ^2.0
tobento/app-crud Version ^2.0
tobento/app-http Version ^2.0
tobento/app-migration Version ^2.0
tobento/app-language Version ^2.0
tobento/app-logging Version ^2.0
tobento/app-translation Version ^2.0
tobento/app-user Version ^2.0
tobento/app-view Version ^2.0
tobento/service-collection Version ^2.0
tobento/service-repository Version ^2.0
tobento/service-repository-storage Version ^2.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 tobento/app-logging-web contains the following files

Loading the files please wait ...