PHPackages                             outsourced/log - 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. outsourced/log

ActiveProject[Logging &amp; Monitoring](/categories/logging)

outsourced/log
==============

Outsourced backed

0.3.3(5y ago)067[5 issues](https://github.com/pipan/log-outsourced-api/issues)[5 PRs](https://github.com/pipan/log-outsourced-api/pulls)MITPHPPHP ^7.2

Since Jun 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pipan/log-outsourced-api)[ Packagist](https://packagist.org/packages/outsourced/log)[ RSS](/packages/outsourced-log/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (12)Versions (18)Used By (0)

Outsourced
==========

[](#outsourced)

[![Build Status](https://camo.githubusercontent.com/1707fd7dd0d2443a9b00a58519b432b73c6ad2d4eb8dc90a652b1665c298a5f1/68747470733a2f2f7472617669732d63692e636f6d2f706970616e2f6c6f672d6f7574736f75726365642d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/pipan/log-outsourced-api)

[![logo](docs/assets/favicon-32x32.png)](docs/assets/favicon-32x32.png)

Standalone server service for managing your applications's:

- logs
- user permissions

Demo
----

[](#demo)

[Outsourced web client](https://outsourced.ovaldo.sk)

Create new connection to demo server:

- Name: demo
- Host:
- Username: root
- Password: root

[![create demo connection](https://camo.githubusercontent.com/be8b8b280bdd914510e7f97e34aafd4cf8b789bc9bac46368a26850fd24c67fb/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f446c39324770576c4635533846385671756b2f67697068792e676966)](https://camo.githubusercontent.com/be8b8b280bdd914510e7f97e34aafd4cf8b789bc9bac46368a26850fd24c67fb/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f446c39324770576c4635533846385671756b2f67697068792e676966)

Installation
------------

[](#installation)

### Demo Installation

[](#demo-installation)

Demo installlation is good just for trying thinks out. You will not be able to update application in the future easily.

First step is to install source code

`composer create-project --prefer-dist --no-dev outsourced/log`

> this command will create a folder named `log`. This guide will assume, you have not changed this folder name

Switch to newly creted directory `cd log` and start app setup.

```
php artisan setup
php artisan setup:database
php artisan migrate

```

These command will guide you trough app setup, database setup and will create all database tables.

`sudo chown -R www-data:www-data storage`

This commad will grant access permission for storage folder. Application logs are stored there.

Then you have to configure your [virtual host](docs/VIRTUAL_HOST.md).

> If you are runnig this application localy, then you will have to add &lt;your\_domain&gt; to `hosts` file.

Now you should be able to access one API endpoint. Open your web browser and input `./api/v1/projects`. You should receive json response with empty array.

### Installation

[](#installation-1)

Production installation is slightlly different, because you have to think about future updates. That requires a special directory structure. We have prepared a [list of commands](docs/PRODUCTION_SETUP.md) that will create this directory structure for you. The idea is to have a `releases` directory, that contains every update. You can switch what version is currenctly in use. To switch between version you will use direcotry link `current` that will point tu currently used version. Then there is a `storage` direcotry, that stores your application data an logs. So every version in releases directory will use the same storage. `environment` directory has configuration for this instance of application. `public` directory contains `index.php` and `.htaccess` files. This is also a directory that your virtual host should refer to. And last directory is `console` and there you can find script that can help you set up some enviroment values or clear cache or migrate database ...

Then you should go to `console` directory and run initial setup.

```
cd console
php artisan key:generate --ansi
php artisan init:file
php artisan setup
php artisan setup:database
php artisan migrate
cd ../

```

Application will need access to one directory, so you will have to run `sudo chown -R www-data:www-data storage`

Then you have to configure your [virtual host](docs/VIRTUAL_HOST.md). And add ertificate. For testing purpose, we created tutorial [how to setup certificate with certbot](docs/CERT.md)

> If you are runnig this application localy, then you will have to add &lt;your\_domain&gt; to `hosts` file.

Now you should be able to access one API endpoint. Open your web browser and input `./api/v1/projects`. You should receive json response with empty array.

### Update to new version

[](#update-to-new-version)

```
cd console
php artisan release:upgrade
cd ../

```

### Rollback to previous version

[](#rollback-to-previous-version)

```
cd console
php artisan release:rollback
cd ../

```

API
---

[](#api)

### Logging

[](#logging)

**Single**

```
[POST] /logs/{accessKey}

```

Body

```
{
    "level": "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency",
    "message": "string",
    "context": {}
}
```

**Batch**

```
[POST] /logs/{accessKey}/batch

```

Body

```
[
    {
        "level": "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency",
        "message": "string",
        "context": {}
    },
    ...
]
```

### Permissions

[](#permissions)

**Verify**

```
[GET] /permissions/{accessKey}

```

Query

```
user=string
permissions[]=string

```

Response

```
string[]

```

SDK
---

[](#sdk)

- [PHP](https://github.com/pipan/log-outsourced-php-sdk)

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

[](#contribution)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.4% 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.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~43 days

Total

11

Last Release

1991d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/775a7227e0e7d4846459381b3b3d501c394652c515f6500dcea53df6fd0b8b63?d=identicon)[pipan](/maintainers/pipan)

---

Top Contributors

[![pipan](https://avatars.githubusercontent.com/u/8142625?v=4)](https://github.com/pipan "pipan (176 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

logloggingproxyrolespermissionsoutsource

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/outsourced-log/health.svg)

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

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[league/tactician-logger

Adds PSR-3 logging support to the Tactician command bus

649.6M9](/packages/league-tactician-logger)[nelmio/js-logger-bundle

Adds logging of JS errors in your Symfony application

1761.2M](/packages/nelmio-js-logger-bundle)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)

PHPackages © 2026

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