{"id":24736794,"url":"https://github.com/cybex-dev/simple_print","last_synced_at":"2026-05-04T18:40:29.839Z","repository":{"id":274517381,"uuid":"923182682","full_name":"cybex-dev/simple_print","owner":"cybex-dev","description":"Takes print() to the next level with custom print functions.","archived":false,"fork":false,"pushed_at":"2025-01-28T08:44:49.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T02:47:13.360Z","etag":null,"topics":["console","dart","dartlang","debug","flutter","flutter-examples","log","logger","logging","print"],"latest_commit_sha":null,"homepage":"https://simple-print-2e7d2.web.app/","language":"Dart","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/cybex-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-27T19:25:05.000Z","updated_at":"2025-01-28T08:48:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc7b25c1-1512-41c2-883a-721b900d6ce5","html_url":"https://github.com/cybex-dev/simple_print","commit_stats":null,"previous_names":["cybex-dev/simple_print"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/cybex-dev/simple_print","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybex-dev%2Fsimple_print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybex-dev%2Fsimple_print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybex-dev%2Fsimple_print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybex-dev%2Fsimple_print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cybex-dev","download_url":"https://codeload.github.com/cybex-dev/simple_print/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybex-dev%2Fsimple_print/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32620511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: 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":["console","dart","dartlang","debug","flutter","flutter-examples","log","logger","logging","print"],"created_at":"2025-01-27T21:59:42.118Z","updated_at":"2026-05-04T18:40:29.809Z","avatar_url":"https://github.com/cybex-dev.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple_print\n\nTakes print() to the next level with custom print functions.\n\nA simple print package that allows you to print messages with a timestamp, tag, and log level. For example\n```dart\nsetAppTag('Car Details Screen');\nconst car = Car('Toyota', 'Corolla', 2022);\nprintDebug(car, timestamp: true, tag: '/api/v1/car/1/details');\n```\n\nwould print the following:\n```\nD 2025-01-27T21:11:09.432187 [Car Details Screen] [/api/v1/car/1/details] Car{make: Toyota, model: Corolla, year: 2022}\n```\n\n## Installation\n\n```dart\ndependencies:\n  simple_print: any\n```\n\n## Import\n\n```dart\nimport 'package:simple_print/simple_print.dart';\n```\n\n## Usage\n\n```dart\nclass DboObject{\n    final String name;\n    final int id;\n    \n    const DboObject({required this.name, this.id = 1});\n    \n    @override\n    String toString() {\n        return 'DboObject{name: $name, id: $id}';\n    }\n}\n\nclass UserObject{\n    final String username;\n    final String password;\n    \n    const UserObject({required this.username, required this.password});\n    \n    @override\n    String toString() {\n        return 'UserObject{username: $username, password: $password}';\n    }\n}\n\nvoid main() {\n  printDebug('Debug message');\n  \n  final dboObject = DboObject(name: \"DboObject\");\n  printInfo(dboObject, timestamp: false);\n  \n  final userObject = UserObject(username: \"user\", password: \"password\");\n  printWarning(userObject, timestamp: true, tag: \"Login Screen\");\n  \n  printError(null, timestamp: true);\n}\n```\n\n## Functions\n\nAll print functions have the following signature:\n\n```dart\nvoid printFunction(dynamic message, { String? tag, bool timestamp = false, bool debugOverride = kDebugMode });\n```\n\n- `message`: The message to print, calls the `toString()` method on the object or prints null if the object is null.\n- `tag`: The tag to print before the message. Use the appTag to set a global tag for all messages by calling `setAppTag().`\n- `timestamp`: Whether to print the timestamp before the message.\n- `debugOverride`: Whether to print the message in debug mode. If false, the message will only be printed in release mode.\n\n## Logging functions\n- `printDebug`: Prints a debug message.\n- `printInfo`: Prints an info message.\n- `printWarning`: Prints a warning message.\n- `printError`: Prints an error message.\n\n### Log Levels\n- Debug: a debug message, provides additional information for debugging purposes.\n- Info: an informational message, provides information about the application's state.\n- Warning: a warning message, provides information about potential issues.\n- Error: an error message, provides information about errors that occurred.\n\nFor more reading, please see [log levels](https://sematext.com/blog/logging-levels/) on sematext or for the more technically inclined, read more about the [log levels with syslog](https://en.wikipedia.org/wiki/Syslog#Severity_levels).\n\n##\n\nPR and contributions are welcome. Please open an issue if you have any suggestions or improvements.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcybex-dev%2Fsimple_print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcybex-dev%2Fsimple_print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcybex-dev%2Fsimple_print/lists"}