{"id":13699906,"url":"https://github.com/mix-php/monolog","last_synced_at":"2025-04-12T23:32:48.750Z","repository":{"id":57017795,"uuid":"162685500","full_name":"mix-php/monolog","owner":"mix-php","description":"Monolog support Swoole coroutine and cli console printing","archived":false,"fork":false,"pushed_at":"2020-09-30T06:45:28.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T17:41:51.574Z","etag":null,"topics":["log","mix"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mix-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-21T08:07:59.000Z","updated_at":"2024-12-16T14:57:34.000Z","dependencies_parsed_at":"2022-08-22T11:30:51.695Z","dependency_job_id":null,"html_url":"https://github.com/mix-php/monolog","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Fmonolog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Fmonolog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Fmonolog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Fmonolog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mix-php","download_url":"https://codeload.github.com/mix-php/monolog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262154,"owners_count":21074255,"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","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":["log","mix"],"created_at":"2024-08-02T20:00:45.591Z","updated_at":"2025-04-12T23:32:48.728Z","avatar_url":"https://github.com/mix-php.png","language":"PHP","funding_links":[],"categories":["Logging"],"sub_categories":[],"readme":"## Mix Monolog\n\n支持 Swoole 协程的 Monolog，支持 cli 控制台打印\n\n## Usage\n\n安装：\n\n```\ncomposer require mix/monolog\n```\n\n创建 Logger：\n\n```\n$logger  = new \\Mix\\Monolog\\Logger('API', [new \\Mix\\Monolog\\Handler\\ConsoleHandler], [new \\Monolog\\Processor\\PsrLogMessageProcessor]);\n$handler = new \\Mix\\Monolog\\Handler\\RotatingFileHandler(sprintf('%s/runtime/logs/api.log', $basePath), 7);\n$logger-\u003epushHandler($handler);\n```\n\n调用：\n\n```\n$logger-\u003einfo('server started');\n```\n\n## License\n\nApache License Version 2.0, http://www.apache.org/licenses/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmix-php%2Fmonolog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmix-php%2Fmonolog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmix-php%2Fmonolog/lists"}