{"id":20923424,"url":"https://github.com/bmcminn/minilog","last_synced_at":"2026-04-25T06:35:48.569Z","repository":{"id":62509303,"uuid":"141983602","full_name":"bmcminn/minilog","owner":"bmcminn","description":"A dependency free PHP logging utility that just friggin' works :)","archived":false,"fork":false,"pushed_at":"2022-05-04T04:10:30.000Z","size":17,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-30T13:01:44.788Z","etag":null,"topics":["daily-logs","logging","php","php7"],"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/bmcminn.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":"2018-07-23T08:17:30.000Z","updated_at":"2022-05-04T03:51:54.000Z","dependencies_parsed_at":"2022-11-02T10:16:13.888Z","dependency_job_id":null,"html_url":"https://github.com/bmcminn/minilog","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/bmcminn/minilog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmcminn%2Fminilog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmcminn%2Fminilog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmcminn%2Fminilog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmcminn%2Fminilog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmcminn","download_url":"https://codeload.github.com/bmcminn/minilog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmcminn%2Fminilog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32253251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T04:23:17.126Z","status":"ssl_error","status_checked_at":"2026-04-25T04:21:53.360Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["daily-logs","logging","php","php7"],"created_at":"2024-11-18T20:15:49.479Z","updated_at":"2026-04-25T06:35:48.543Z","avatar_url":"https://github.com/bmcminn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minilog\n\nA dependency free PHP logging utility that just friggin' works :)\n\n\n## Why yet another logging utility?\n\nI like projects like Monolog, but they lack basic conveniences I like about the native `console.log()` in JavaScript; plus I have a niceities baked into Minilog that you may like as well:\n\n- dependency free\n- Each log method accepts N arguments and automagically concatenates them into a log message (just like JS console.log!!! :D)\n- automagically JSON encodes arrays and objects (just like JS console.log :P), and tags the output accordingly\n- automagically determines which CLI stream to write to; allowing for CLI logging when running on PHP's internal server\n- automagically applies color coding of CLI messages based on log level severity\n- conditionally allows each logger instance to log the calling file and line number so you know where the log message originated from\n- automagically prepends each log file with the Y-M-D for daily log rotation\n\n\n## Installation\nOpen up your favorite CLI and enter the typical `composer require` command:\n\n```sh\n\u003e composer require gbox/minilog\n```\n\nBOOM! Now get logging!\n\n\n## Usage:\n\nUsing `Minilog` is pretty straightforward. You define a `new \\Gbox\\Minilog()` class intance, you pass in the name of the logger context, and you may pass an option associative array of options to configure it for your needs.\n\n```php\n\u003c?php\n\nrequire \"vendor/autoload.php\";\n\nuse Gbox\\Minilog as Logger;\n\n// Minilog($logname [, $options[] ])\nLogger::setup('logName', [\n    // write log entries to the console\n    'console'    =\u003e true,            // bool   : defaults true\n\n    // defines where log files should be written to\n    'dir'        =\u003e './logs',        // string : defaults '.'\n\n    // defines the minimum RFC 5424 level to log\n    'level'      =\u003e 'DEBUG',         // string : defaults 'DEBUG'\n\n    // defines whether to log the path and line number of the log call\n    'linenos'    =\u003e true,            // bool   : defaults true\n\n    // defines the timestamp format\n    'timestamp'  =\u003e '[Y-m-d H:m:s]', // string : you can change this if you want\n]);\n\n\nLogger::debug('testing', 'message', 'here');     // testing message here\nLogger::info('testing', 'message', 'here');      // testing message here\nLogger::notice('testing', 'message', 'here');    // testing message here\nLogger::warning('testing', 'message', 'here');   // testing message here\nLogger::error('testing', 'message', 'here');     // testing message here\nLogger::critical('testing', 'message', 'here');  // testing message here\nLogger::alert('testing', 'message', 'here');     // testing message here\nLogger::emergency('testing', 'message', 'here'); // testing message here\n```\n\n\n## Example Output:\n\nYou can see a sample of Minilog in action by cloning this repo and running the following commands in your terminal of choice:\n\n```sh\n\u003e php test-minilog.php\n[2018-07-23 08:07:36] testing_logs.DEBUG:     test-minilog.php:15 testing debug messages (BOOL) true\n[2018-07-23 08:07:36] testing_logs.INFO:      test-minilog.php:16 testing info messages (BOOL) true\n[2018-07-23 08:07:36] testing_logs.NOTICE:    test-minilog.php:17 testing notice messages (BOOL) true\n[2018-07-23 08:07:36] testing_logs.WARNING:   test-minilog.php:18 testing warning messages (BOOL) false\n[2018-07-23 08:07:36] testing_logs.ERROR:     test-minilog.php:19 testing error messages (BOOL) false\n[2018-07-23 08:07:36] testing_logs.CRITICAL:  test-minilog.php:20 testing critical messages (BOOL) false\n[2018-07-23 08:07:36] testing_logs.ALERT:     test-minilog.php:21 testing alert messages (BOOL) false\n[2018-07-23 08:07:36] testing_logs.EMERGENCY: test-minilog.php:22 testing emergency messages (BOOL) false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmcminn%2Fminilog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmcminn%2Fminilog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmcminn%2Fminilog/lists"}