{"id":19598342,"url":"https://github.com/dotupnet/dotup_dart_logger","last_synced_at":"2025-02-26T15:15:45.374Z","repository":{"id":61973142,"uuid":"390793631","full_name":"dotupNET/dotup_dart_logger","owner":"dotupNET","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-30T15:41:23.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T07:46:36.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotupNET.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://www.paypal.com/paypalme/dotup"]}},"created_at":"2021-07-29T16:53:50.000Z","updated_at":"2024-04-08T01:56:49.000Z","dependencies_parsed_at":"2022-10-24T13:30:41.535Z","dependency_job_id":null,"html_url":"https://github.com/dotupNET/dotup_dart_logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2Fdotup_dart_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2Fdotup_dart_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2Fdotup_dart_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2Fdotup_dart_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotupNET","download_url":"https://codeload.github.com/dotupNET/dotup_dart_logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240876855,"owners_count":19871903,"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":[],"created_at":"2024-11-11T09:05:51.852Z","updated_at":"2025-02-26T15:15:45.352Z","avatar_url":"https://github.com/dotupNET.png","language":"Dart","funding_links":["https://www.paypal.com/paypalme/dotup"],"categories":[],"sub_categories":[],"readme":"# dotup_dart_logger\n\n## Take a look at [dotup.de](https://dotup.de) or on [pub.dev](https://pub.dev/packages?q=dotup)\n\n## Example\n\n```dart\nfinal consoleWriter = ConsoleLogWriter(LogLevel.Info | LogLevel.Error);\nLoggerManager.addLogWriter(consoleWriter);\n\nvar logger = Logger('dotup');\n\n// Only info and error are printed\nlogger.debug(\"Where's the bug?\");\nlogger.error(UnimplementedError());\nlogger.info('Starting');\n// console is a formated print call\nlogger.console(() =\u003e 'Expensive log entry');\nlogger.warn('warning');\n\nLoggerManager.removeLogWriter(consoleWriter);\n\n// Create an output target\nfinal c2 = ConsoleLogWriter(LogLevel.All, formater: PrettyFormater(showColors: true));\n// Add that target to LoggerManager\nLoggerManager.addLogWriter(c2);\n// Create a named Logger\nlogger = Logger('PP');\n// And log\nlogger.debug('PrettyFormater with colors');\nlogger.info('PrettyFormater with colors');\nlogger.warn('PrettyFormater with colors');\nlogger.error(Trouble('PrettyFormater with colors'));\nlogger.exception(Problem('PrettyFormater with colors'));\n```\n\n\n### Example console output:\n\n```\nConnecting to VM Service at http://127.0.0.1:53575/raiZraXssJM=/\n2021-07-30 07:39:22.566748 | logger: dotup | text: UnimplementedError | level: Error\n2021-07-30 07:39:22.572365 | logger: dotup | text: Starting | level: Info\n2021-07-30 07:39:22.573980 | logger: dotup | text: Expensive log entry | level: None\n🐞  07:39:22.575765 PP PrettyFormater with colors Debug\nℹ️  07:39:22.578314 PP PrettyFormater with colors Info\n🦺  07:39:22.578802 PP PrettyFormater with colors Warn\n😩  07:39:22.579125 PP PrettyFormater with colors Error\n💥  07:39:22.579755 PP Exception: PrettyFormater with colors Exception\nExited\n```\n\n### If you'Re using Flutter: [dotup_flutter_logger](https://github.com/dotupNET/dotup_flutter_logger)\n\n\nFlutter widgets for this logger:\n\n\n\u003cimg src=\"https://raw.githubusercontent.com/dotupNET/dotup_flutter_logger/master/screenshots/dotup_flutter_logger_1.png\" width=300\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/dotupNET/dotup_flutter_logger/master/screenshots/dotup_flutter_logger_2.png\" width=300\u003e\n\n\u003cvideo src=\"https://raw.githubusercontent.com/dotupNET/dotup_flutter_logger/master/screenshots/dotup_flutter_logger_3.mp4\" autoplay width=300\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotupnet%2Fdotup_dart_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotupnet%2Fdotup_dart_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotupnet%2Fdotup_dart_logger/lists"}