PHPackages                             os2web/os2web\_logging - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. os2web/os2web\_logging

ActiveDrupal-module[Logging &amp; Monitoring](/categories/logging)

os2web/os2web\_logging
======================

Logs access selected content type or webform elements

02.5k[1 issues](https://github.com/OS2web/os2web_logging/issues)PHP

Since Apr 29Pushed 1w ago7 watchersCompare

[ Source](https://github.com/OS2web/os2web_logging)[ Packagist](https://packagist.org/packages/os2web/os2web_logging)[ RSS](/packages/os2web-os2web-logging/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (3)Used By (0)

OS2Web Logging Drupal module [![Build Status](https://camo.githubusercontent.com/8eff3213c635fd0c6f0649785885932ed999bc0442b7d4879daa7989291286bd/68747470733a2f2f7472617669732d63692e6f72672f4f53327765622f6f73327765625f6c6f6767696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OS2web/os2web_logging)
===========================================================================================================================================================================================================================================================================================================================

[](#os2web-logging-drupal-module-)

Module purpose
--------------

[](#module-purpose)

The aim of this module is to provide logging of node access and NemID webform fields.

How does it work
----------------

[](#how-does-it-work)

When node or NemID webform field is access this is logged by the module.

Logs are stored in two places: database + files.

After logs are enabled and configured, they are shown here: `/admin/reports/os2web-logging-access-logs`

File logs are saved in directory: `../logs/`

It is **required** that this directory exists and is writable.

Additional settings
-------------------

[](#additional-settings)

Settings are available under `/admin/config/system/os2logging/settings`

- **Node types access to keep log of** - Select node type to keep logs of.
- **Webform fields access to keep log of** - Select webform fields type to keep logs of.
- **Log anonymous user actions** - If anonymous user actions are being logged
- **Store database logs for this period** - Database logs will be stored for the selected number of days, after that they will be automatically deleted (cleanup is done daily).
- **Store log files for this period** - Log file will be stored for the selected number of days, after that they will be automatically deleted
- **Store log files directory** - Logs will be saved in this path.
- **Import logs from uploaded file** - Allows import logs into database.

Settings are available under `/admin/config/system/os2logging/watchdog-settings`

- **DB Log enabled** - If watchdog messages shall be added to the dblog.
- **Store log files for this period** - Log file will be stored for the selected number of days, after that they will be automatically deleted
- **Store log files directory** - Logs will be saved in this path.

Install
-------

[](#install)

Module is available to download via composer.

```
composer require os2web/os2web_logging
drush en os2web_logging

```

Add this to you `settings.php` or `settings.local.php`

```
if (file_exists($app_root . '/' . $site_path . '/os2web_logging.settings.php')) {
  include $app_root . '/' . $site_path . '/os2web_logging.settings.php';
}
if (file_exists($app_root . '/' . $site_path . '/os2web_logging.watchdog_settings.php')) {
  include $app_root . '/' . $site_path . '/os2web_logging.watchdog_settings.php';
}

```

Update
------

[](#update)

Updating process for OS2Web Logging is similar to usual Drupal 8 module. Use Composer's built-in command for listing packages that have updates available:

```
composer outdated os2web/os2web_logging

```

Automated testing and code quality
----------------------------------

[](#automated-testing-and-code-quality)

See [OS2Web testing and CI information](https://github.com/OS2Web/docs#testing-and-ci)

Contribution
------------

[](#contribution)

Project is opened for new features and os course bugfixes. If you have any suggestion or you found a bug in project, you are very welcome to create an issue in github repository issue tracker. For issue description there is expected that you will provide clear and sufficient information about your feature request or bug report.

### Code review policy

[](#code-review-policy)

See [OS2Web code review policy](https://github.com/OS2Web/docs#code-review)

### Git name convention

[](#git-name-convention)

See [OS2Web git name convention](https://github.com/OS2Web/docs#git-guideline)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance64

Regular maintenance activity

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 82.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/827308?v=4)[Jørn Skifter Andersen](/maintainers/skifter)[@skifter](https://github.com/skifter)

![](https://www.gravatar.com/avatar/62f8489b69aecc84322f8899d288c3ab41d3022532d49c849ae4ca10e20f4df7?d=identicon)[andriyun](/maintainers/andriyun)

![](https://www.gravatar.com/avatar/134c42b216718e3d28298bcec8772eeb309c8c94afff3462dac1245b06c06cc5?d=identicon)[stanbellcom](/maintainers/stanbellcom)

---

Top Contributors

[![stankut](https://avatars.githubusercontent.com/u/1537807?v=4)](https://github.com/stankut "stankut (46 commits)")[![andriyun](https://avatars.githubusercontent.com/u/5544994?v=4)](https://github.com/andriyun "andriyun (6 commits)")[![juuliabellcom](https://avatars.githubusercontent.com/u/5367428?v=4)](https://github.com/juuliabellcom "juuliabellcom (4 commits)")

### Embed Badge

![Health badge](/badges/os2web-os2web-logging/health.svg)

```
[![Health](https://phpackages.com/badges/os2web-os2web-logging/health.svg)](https://phpackages.com/packages/os2web-os2web-logging)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
