{"id":24714530,"url":"https://github.com/lkorth/mailable-log","last_synced_at":"2026-05-09T10:55:47.094Z","repository":{"id":23598848,"uuid":"26967627","full_name":"lkorth/mailable-log","owner":"lkorth","description":"An opinionated logger for Android with built in email support","archived":false,"fork":false,"pushed_at":"2017-06-20T15:29:47.000Z","size":67,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T17:55:15.095Z","etag":null,"topics":["android","debugging","library","log"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/lkorth.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":"2014-11-21T16:25:11.000Z","updated_at":"2016-11-01T23:40:03.000Z","dependencies_parsed_at":"2022-08-21T19:40:39.968Z","dependency_job_id":null,"html_url":"https://github.com/lkorth/mailable-log","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkorth%2Fmailable-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkorth%2Fmailable-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkorth%2Fmailable-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkorth%2Fmailable-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lkorth","download_url":"https://codeload.github.com/lkorth/mailable-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244924995,"owners_count":20532898,"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":["android","debugging","library","log"],"created_at":"2025-01-27T08:17:03.855Z","updated_at":"2026-05-09T10:55:47.019Z","avatar_url":"https://github.com/lkorth.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"mailable-log\n============\n\n## Getting Started\n\nAdd mailable-log as a dependency:\n\n```groovy\ndependencies {\n    compile 'com.lukekorth:mailable_log:0.1.6'\n}\n```\n\nAdd the provider inside the application tag in your `AndroidManifest`:\n\n```xml\n\u003cprovider\n    android:name=\"android.support.v4.content.FileProvider\"\n    android:authorities=\"${applicationId}.fileprovider\"\n    android:exported=\"false\"\n    android:grantUriPermissions=\"true\"\u003e\n    \u003cmeta-data\n        android:name=\"android.support.FILE_PROVIDER_PATHS\"\n        android:resource=\"@xml/file_paths\" /\u003e\n\u003c/provider\u003e\n```\n\nFor those using Gradle `${applicationId}` can be left alone, however Maven users should replace\n`${applicationId}` with the app's package name.\n\n## Usage\n\n### Initializing\n\nInitialization should be done as soon as possible, preferably in `Application#onCreate`.\n\n```java\nMailableLog.init(context, BuildConfig.DEBUG);\n```\n\n### Logging\n\nUse `LoggerFactory` to get a logger instance. Logs can be written at several different levels.\n\n```java\nLogger logger = LoggerFactory.getLogger(TAG);\nlogger.error(\"message\");\n```\n\n### Emailing the log\n\n`MailableLog#buildEmailIntent` must not be called on the main thread.\n\n```java\nMailableLog.buildEmailIntent(context, \"to-address@example.com\", \"Email Subject\", \"file-name.log\", prependedStringInLog);\n```\n\n### Clearing the log\n\nTo clear the existing log:\n\n```java\nMailableLog.clearLog(context);\n```\n\n## License\n\nmailable-log is open source and available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkorth%2Fmailable-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flkorth%2Fmailable-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkorth%2Fmailable-log/lists"}