{"id":20942428,"url":"https://github.com/unfoldingword-dev/android-logger","last_synced_at":"2026-04-20T16:04:20.456Z","repository":{"id":141873604,"uuid":"52643327","full_name":"unfoldingWord-dev/android-logger","owner":"unfoldingWord-dev","description":"A better logging tool for android","archived":false,"fork":false,"pushed_at":"2017-04-19T22:57:41.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-19T21:16:10.649Z","etag":null,"topics":[],"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/unfoldingWord-dev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-27T01:14:33.000Z","updated_at":"2016-02-27T02:27:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ccb9fc0-cb23-421d-bc19-6d0b5b3e8f8e","html_url":"https://github.com/unfoldingWord-dev/android-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/unfoldingWord-dev%2Fandroid-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfoldingWord-dev%2Fandroid-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfoldingWord-dev%2Fandroid-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfoldingWord-dev%2Fandroid-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unfoldingWord-dev","download_url":"https://codeload.github.com/unfoldingWord-dev/android-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243335382,"owners_count":20274898,"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-18T23:26:56.559Z","updated_at":"2025-12-28T16:33:36.538Z","avatar_url":"https://github.com/unfoldingWord-dev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Logger\nAn advanced logging library that provides support for writing logs to a file and catching global application exceptions.\n\n##Installation\nTo use this library your Android project must be configured to use the JCenter or Maven Central repositories.\n\nAdd the following to your package dependencies and sync gradle.\n```\ncompile 'org.unfoldingword.tools:logger:1.0.0'\n```\n\n##Set up Global Exception Handler\nIf you want to use the global exception handler then you should register it when your app starts.\n\n```\nLogger.registerGlobalExceptionHandler(pathToStacktraceDirectory);\n```\n\nThe argument is the directory path where you want stacktraces to be stored.\n\n##Set up Logger\nThe logger contains three levels of log detail\n\n* Info\n* Warning\n* Error\n\nTo begin using the logger you must configure it\n\n```\nLogger.configure(pathToLogFile, minimumAllowdLogLevel);\n```\n\nThe first argument gives the path to the log file that will be written to. The second argument is the lower log level that will be processed.\n\n##Usage\nThe Logger is a singleton so to use it you simply call one of it's static log methods\n\n```\nLogger.e(tag, message, throwable);\nLogger.w(tag, message, throwable);\nLogger.w(tag, message);\nLogger.i(tag, message);\n```\n\nThere are other public methods that allow you to retrieve a list of log objects, flush the log, or list stacktrace files.\n\n```\nList\u003cLogEntry\u003e logsEntries = \u003cLogger.getLogEntries();\nList\u003cLogEntry\u003e logsEntries = \u003cLogger.getLogEntries();\nLogger.flush();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfoldingword-dev%2Fandroid-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funfoldingword-dev%2Fandroid-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfoldingword-dev%2Fandroid-logger/lists"}