{"id":23786273,"url":"https://github.com/the-alex-mark/laravel-logging","last_synced_at":"2025-10-13T22:36:35.590Z","repository":{"id":57067755,"uuid":"428167644","full_name":"the-alex-mark/laravel-logging","owner":"the-alex-mark","description":"Дополнительные реализации форматов журнала для проектов «Laravel»","archived":false,"fork":false,"pushed_at":"2025-09-11T17:08:42.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T22:36:35.329Z","etag":null,"topics":["laravel","laravel-package","logging"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/the-alex-mark.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-15T07:43:58.000Z","updated_at":"2025-09-11T17:08:46.000Z","dependencies_parsed_at":"2022-08-24T05:40:06.985Z","dependency_job_id":"2fd63efe-c102-42dc-8eef-211e09bf7a1b","html_url":"https://github.com/the-alex-mark/laravel-logging","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/the-alex-mark/laravel-logging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-alex-mark%2Flaravel-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-alex-mark%2Flaravel-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-alex-mark%2Flaravel-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-alex-mark%2Flaravel-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-alex-mark","download_url":"https://codeload.github.com/the-alex-mark/laravel-logging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-alex-mark%2Flaravel-logging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017147,"owners_count":26085983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-package","logging"],"created_at":"2025-01-01T14:14:12.210Z","updated_at":"2025-10-13T22:36:35.555Z","avatar_url":"https://github.com/the-alex-mark.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Logging\n\nДополнительные реализации форматов журнала для проектов «**Laravel**».\n\n\u003cbr\u003e\n\n## Установка\n\n```bash\ncomposer require the_alex_mark/laravel-logging\n```\n\n\u003cbr\u003e\n\n## Использование\n\n### Логирование в формате JSON\n\nКласс «**CustomizeJsonLogger**» построен на базе драйвера «**daily**» и поддерживает все его параметры. Дополнительно позволяет указать список процессоров для включения в записи журнала дополнительной информации.\n\n```php\nnamespace App\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Monolog\\Processor\\HostnameProcessor;\nuse Monolog\\Processor\\WebProcessor;\nuse ProgLib\\Logging\\Via\\CustomizeJsonLogger;\n\nclass AppServiceProvider extends ServiceProvider {\n\n    /**\n     * Bootstrap any application services.\n     * \n     * @return void\n     */\n    public function boot() {\n    \n        $this-\u003eapp-\u003eget('config')-\u003eset(\"logging.channels.custom\", [\n            'name' =\u003e 'custom',\n            'driver' =\u003e 'custom',\n            'via' =\u003e CustomizeJsonLogger::class,\n            'path' =\u003e storage_path(\"logs/json/laravel.json\"),\n            'level' =\u003e 'debug',\n            'permission' =\u003e 0755,\n            'locking' =\u003e true,\n            'days' =\u003e 30,\n            'processors' =\u003e [\n                HostnameProcessor::class,\n                WebProcessor::class\n            ]\n        ]);\n    }\n}\n```\n\n\u003cbr\u003e\n\n### Логирование в формате LINE с форматированным контекстом\n\n```php\nnamespace App\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse ProgLib\\Logging\\Taps\\CustomizeLineFormatter;\n\nclass AppServiceProvider extends ServiceProvider {\n\n    /**\n     * Bootstrap any application services.\n     * \n     * @return void\n     */\n    public function boot() {\n    \n        $this-\u003eapp-\u003eget('config')-\u003eset(\"logging.channels.custom\", [\n            'name' =\u003e 'custom',\n            'driver' =\u003e 'daily',\n            'path' =\u003e storage_path(\"logs/laravel.log\"),\n            'level' =\u003e 'debug',\n            'permission' =\u003e 0755,\n            'locking' =\u003e true,\n            'days' =\u003e 30,\n            'tap' =\u003e [ CustomizeLineFormatter::class ]\n        ]);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-alex-mark%2Flaravel-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-alex-mark%2Flaravel-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-alex-mark%2Flaravel-logging/lists"}