{"id":20705987,"url":"https://github.com/hopex-development/simplog","last_synced_at":"2025-04-23T01:49:38.864Z","repository":{"id":65088468,"uuid":"581869922","full_name":"Hopex-Development/simplog","owner":"Hopex-Development","description":"The library contains a simple class and it's facade, for simple data and exception logging.","archived":false,"fork":false,"pushed_at":"2023-05-18T11:10:36.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T01:49:31.660Z","etag":null,"topics":["logging","php7"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/hopex/simplog","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/Hopex-Development.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-24T16:55:45.000Z","updated_at":"2023-09-04T18:07:37.000Z","dependencies_parsed_at":"2023-01-13T15:26:30.547Z","dependency_job_id":null,"html_url":"https://github.com/Hopex-Development/simplog","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopex-Development%2Fsimplog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopex-Development%2Fsimplog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopex-Development%2Fsimplog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopex-Development%2Fsimplog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hopex-Development","download_url":"https://codeload.github.com/Hopex-Development/simplog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250354293,"owners_count":21416751,"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":["logging","php7"],"created_at":"2024-11-17T01:20:54.223Z","updated_at":"2025-04-23T01:49:38.849Z","avatar_url":"https://github.com/Hopex-Development.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple data logging\n\n\u003cp\u003e\n    \u003cimg alt=\"Package version\" src=\"https://packages-api.hopex.ru/api/simplog/packagist/hopex/downloads\"\u003e\n    \u003cimg alt=\"Package version\" src=\"https://packages-api.hopex.ru/api/simplog/packagist/hopex/stars\"\u003e\n    \u003cimg alt=\"PHP version\" src=\"https://packages-api.hopex.ru/api/simplog/version/php\"\u003e\n    \u003cimg alt=\"License\" src=\"https://packages-api.hopex.ru/api/simplog/license\"\u003e\n\u003c/p\u003e\n\nThe library contains a simple class, and it's facade, for simple data and exception logging on JSON format.\n\n## Installing\n\n```\ncomposer require hopex/simplog\n```\n\n## Documentation\n\n| Methods            | Description                                                                                                                                                                | Example for usage                                                                                                                       |\n|:-------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `setWorkDirectory` | Specifies the root directory of the hierarchy of logging levels. It can take several directories in turn one after the other in the form of a standard path.               | `setWorkDirectory('logging')` \u003cbr\u003e `setWorkDirectory('logging/sub-folder')`                                                             |\n| `setLevel`         | Specifies the name of the directory where you want to save the logging file. It can't take several directories in turn one after the other in the form of a standard path. | `setLevel('requests')`                                                                                                                  |\n| `setTimeZone`      | Specifies the current timezone.                                                                                                                                            | `setTimeZone('UTC')` \u003cbr\u003e `setTimeZone('Europe/Amsterdam')`                                                                             |\n| `setDateFormat`    | Sets the time format in the main key of one log element in the logging file. Will not be used if V is specified.                                                           | `setDateFormat('H:i:s')` \u003cbr\u003e `setDateFormat('(Y) H:i:s')`                                                                              |\n| `setItemKey`       | Sets the primary key of one log element in the logging file. In this case, the current time will not be indicated.                                                         | `setItemKey('custom-key')`                                                                                                              |\n| `setItemsLimit`    | Sets the maximum number of elements in a single logging file. The value must be greater than zero. By default, 1000 keys.                                                  | `setItemsLimit(10)` \u003cbr\u003e `setItemsLimit(5000)`                                                                                          |\n| `setPermissions`   | Sets access rights to the logging file.                                                                                                                                    | `setLogFilePermissions(0755)` \u003cbr\u003e `setLogFilePermissions(644)`                                                                         |\n| `setFileName`      | Sets the name of the logging file.                                                                                                                                         | `setFileName('my-requests-logs')`                                                                                                       |\n| `error`            | Logging any object as an error message.                                                                                                                                    | Similarly as for `custom`.                                                                                                              |\n| `warning`          | Logging any object as a warning.                                                                                                                                           | Similarly as for `custom`.                                                                                                              |\n| `info`             | Logging of any object as an informational message.                                                                                                                         | Similarly as for `custom`.                                                                                                              |\n| `custom`           | Logging of any object.                                                                                                                                                     | `custom(new SomeClass())` \u003cbr\u003e `custom('Some message')` \u003cbr\u003e `custom(['key' =\u003e 'value'])`                                               |\n| `exception`        | Logging of the exception object with the possibility of adding additional keys.                                                                                            | `exception(new \\Exceptions())` \u003cbr\u003e `exception(new \\Exceptions(), true)` \u003cbr\u003e `exception(new \\Exceptions(), false, ['key' =\u003e 'value'])` |\n| `clearLevel`       | The requirement to clear the directory where the logging file should be saved from other files.                                                                            | `clearLevel()`                                                                                                                          |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhopex-development%2Fsimplog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhopex-development%2Fsimplog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhopex-development%2Fsimplog/lists"}