{"id":15939528,"url":"https://github.com/afiqiqmal/ezylogger","last_synced_at":"2025-10-19T02:30:38.183Z","repository":{"id":85770197,"uuid":"79514043","full_name":"afiqiqmal/EzyLogger","owner":"afiqiqmal","description":"Simple Logger for Android","archived":false,"fork":false,"pushed_at":"2020-09-08T03:05:17.000Z","size":122,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T08:03:52.880Z","etag":null,"topics":["android","listing","log","logger","toast"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/afiqiqmal.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}},"created_at":"2017-01-20T01:43:44.000Z","updated_at":"2020-09-08T03:05:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"75e5ef4a-a51f-4512-83c1-6b6809b874fa","html_url":"https://github.com/afiqiqmal/EzyLogger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiqiqmal%2FEzyLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiqiqmal%2FEzyLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiqiqmal%2FEzyLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiqiqmal%2FEzyLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afiqiqmal","download_url":"https://codeload.github.com/afiqiqmal/EzyLogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237049901,"owners_count":19246942,"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","listing","log","logger","toast"],"created_at":"2024-10-07T06:04:57.921Z","updated_at":"2025-10-19T02:30:32.899Z","avatar_url":"https://github.com/afiqiqmal.png","language":"Java","funding_links":["https://www.paypal.com/paypalme/mhi9388?locale.x=en_US"],"categories":[],"sub_categories":[],"readme":"# EzyLogger-Android\nSimple Logger for Android\n\n\n[![](https://jitpack.io/v/afiqiqmal/EzyLogger.svg)](https://jitpack.io/#afiqiqmal/EzyLogger)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/paypalme/mhi9388?locale.x=en_US)\n\n\n### Gradle\n\n```grovvy\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n    }\n}\n\ndependencies {\n    compile 'com.github.afiqiqmal:EzyLogger:1.1.0'\n}\n```\n\n### Maven\n```grovvy\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecom.github.afiqiqmal\u003c/groupId\u003e\n\t\u003cartifactId\u003eEzyLogger\u003c/artifactId\u003e\n\t\u003cversion\u003e1.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n[![](https://s2.postimg.org/p1t1p1ebd/Screen_Shot_2017-04-20_at_11.53.28_AM.png)](http://www.methodscount.com/?lib=com.github.afiqiqmal%3AEzyLogger%3A1.1.0)\n\n### How to use:\n\nInit Logger\n\nUse in Activity\n```java\n\npublic class BaseActivtiy extends AppCompatActivity {\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        //inline initialize\n        new Logger.Builder(this).setTag(\"testing\").enableLog(true).create();\n\n        //short initialize\n        Logger.init(this);               // Optional if you dont use Logger Toast\n        Logger.initTag(this,\"testing\");  // default is 'EzyLogger'\n        Logger.initTag(\"testing\");       // default is 'EzyLogger'\n        Logger.canShowLog(true);         // default is True\n    }\n}    \n\n```\n\n\nLogger use\n```java\n\n//info log\nLogger.info(TAG,\"message\"); // can set TAG here if not using initTag\nLogger.info(\"message\");\nLogger.info(Object);\nLogger.info(Object,Format); // JSON, XML,LIST, MAP, BUNDLE, STRING, INTENT, ARRAY\n\nLogger.debug(...);\nLogger.warn(...);\nLogger.error(...);\nLogger.verbose(...);\nLogger.wtf(...);\n\n//EXAMPLE OF USE\n\nList\u003c?\u003e users = new ArrayList\u003c\u003e();\nBundle bundle = new Bundle();\nMap\u003cString,?\u003e map = new LinkedHashMap\u003c\u003e();\nIntent intent = new Intent();\n\nLogger.info(\"message\");\nLogger.info(0);\nLogger.info(new String[]{\"test\",\"world\",\"hello\"});\nLogger.info(new int[]{0,1,2,3,4});\nLogger.info(true);\n\nLogger.info(users);\nLogger.info(bundle);\nLogger.info(map);\nLogger.info(intent);\n\nLogger.info(JSON_STRING,Format.JSON);\nLogger.info(XML_STRING,Format.XML);\nLogger.info(users,Format.LIST);\nLogger.info(bundle,Format.BUNDLE);\nLogger.info(map,Format.MAP);\nLogger.info(intent,Format.INTENT);\nLogger.info(\"message\",Format.STRING);\nLogger.info(new String[]{\"array\",\"1\",\"2\"},Format.ARRAY);\n```\n\n\nUse Logger for showing Toast\n\n``` java\n// Logger.init(this) is needed \nLogger.shortToast(MESSAGE);\nLogger.longToast(MESSAGE);\n```\n\n\nExtra Logger\nif you need to list all the values in SharedPreferences\n```java\n\n//init\nLogger.init(this) //needed if not init yet\n\n//will log all the prefs in the default Prefs\nnew Logger.Preference().printAllSharedPref();\n\n//log all the prefs in the selected Prefs\nnew Logger.Preference().whichPrefDBName(PREF_NAME).printAllSharedPref();\n\n//log the value by the key\nnew Logger.Preference().printSharedPrefByKey(KEY);\n\n\n\n//OR can do like this\nLogger.Preference pref = new Logger.Preference();\npref.whichPrefDBName(PREF_NAME);\npref.printAllSharedPref();\npref.printSharedPrefByKey(KEY);\n\n```\n\n\n\n\n###License\n\u003cpre\u003e\nCopyright 2017 HAFIQ IQMAL\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\u003c/pre\u003e\n\n\n\n\u003ca href=\"https://www.paypal.com/paypalme/mhi9388?locale.x=en_US\"\u003e\u003cimg src=\"https://i.imgur.com/Y2gqr2j.png\" height=\"40\"\u003e\u003c/a\u003e  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafiqiqmal%2Fezylogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafiqiqmal%2Fezylogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafiqiqmal%2Fezylogger/lists"}