[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4026":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},4026,"logger","orhanobut\u002Flogger","orhanobut","✔️ Simple, pretty and powerful logger for android","",null,"Java",13848,2131,366,70,0,1,3,44.99,"Apache License 2.0",false,"master",[24,25,26,27,28,5,29,30],"android","java","json-logging","log","logcat","pretty-printer","timber","2026-06-12 02:00:57","[![Android Arsenal](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAndroid%20Arsenal-Logger-brightgreen.svg?style=flat)](http:\u002F\u002Fandroid-arsenal.com\u002Fdetails\u002F1\u002F1658) [![](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAndroidWeekly-%23147-blue.svg)](http:\u002F\u002Fandroidweekly.net\u002Fissues\u002Fissue-147)\n[![Join the chat at https:\u002F\u002Fgitter.im\u002Forhanobut\u002Flogger](https:\u002F\u002Fbadges.gitter.im\u002FJoin%20Chat.svg)](https:\u002F\u002Fgitter.im\u002Forhanobut\u002Flogger?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) \u003Ca href=\"http:\u002F\u002Fwww.methodscount.com\u002F?lib=com.orhanobut%3Alogger%3A2.0.0\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FMethods and size-198 | 18 KB-e91e63.svg\"\u002F>\u003C\u002Fa> [![Build Status](https:\u002F\u002Ftravis-ci.org\u002Forhanobut\u002Flogger.svg?branch=master)](https:\u002F\u002Ftravis-ci.org\u002Forhanobut\u002Flogger)\n\n\u003Cimg align=\"right\" src='https:\u002F\u002Fgithub.com\u002Forhanobut\u002Flogger\u002Fblob\u002Fmaster\u002Fart\u002Flogger-logo.png' width='128' height='128'\u002F>\n\n### Logger\nSimple, pretty and powerful logger for android\n\n### Setup\nDownload\n```groovy\nimplementation 'com.orhanobut:logger:2.2.0'\n```\n\nInitialize\n```java\nLogger.addLogAdapter(new AndroidLogAdapter());\n```\nAnd use\n```java\nLogger.d(\"hello\");\n```\n\n### Output\n\u003Cimg src='https:\u002F\u002Fgithub.com\u002Forhanobut\u002Flogger\u002Fblob\u002Fmaster\u002Fart\u002Flogger_output.png'\u002F>\n\n\n### Options\n```java\nLogger.d(\"debug\");\nLogger.e(\"error\");\nLogger.w(\"warning\");\nLogger.v(\"verbose\");\nLogger.i(\"information\");\nLogger.wtf(\"What a Terrible Failure\");\n```\n\nString format arguments are supported\n```java\nLogger.d(\"hello %s\", \"world\");\n```\n\nCollections are supported (only available for debug logs)\n```java\nLogger.d(MAP);\nLogger.d(SET);\nLogger.d(LIST);\nLogger.d(ARRAY);\n```\n\nJson and Xml support (output will be in debug level)\n```java\nLogger.json(JSON_CONTENT);\nLogger.xml(XML_CONTENT);\n```\n\n### Advanced\n```java\nFormatStrategy formatStrategy = PrettyFormatStrategy.newBuilder()\n  .showThreadInfo(false)  \u002F\u002F (Optional) Whether to show thread info or not. Default true\n  .methodCount(0)         \u002F\u002F (Optional) How many method line to show. Default 2\n  .methodOffset(7)        \u002F\u002F (Optional) Hides internal method calls up to offset. Default 5\n  .logStrategy(customLog) \u002F\u002F (Optional) Changes the log strategy to print out. Default LogCat\n  .tag(\"My custom tag\")   \u002F\u002F (Optional) Global tag for every log. Default PRETTY_LOGGER\n  .build();\n\nLogger.addLogAdapter(new AndroidLogAdapter(formatStrategy));\n```\n\n### Loggable\nLog adapter checks whether the log should be printed or not by checking this function.\nIf you want to disable\u002Fhide logs for output, override `isLoggable` method. \n`true` will print the log message, `false` will ignore it.\n```java\nLogger.addLogAdapter(new AndroidLogAdapter() {\n  @Override public boolean isLoggable(int priority, String tag) {\n    return BuildConfig.DEBUG;\n  }\n});\n```\n\n### Save logs to the file\n\u002F\u002FTODO: More information will be added later\n```java\nLogger.addLogAdapter(new DiskLogAdapter());\n```\n\nAdd custom tag to Csv format strategy\n```java\nFormatStrategy formatStrategy = CsvFormatStrategy.newBuilder()\n  .tag(\"custom\")\n  .build();\n  \nLogger.addLogAdapter(new DiskLogAdapter(formatStrategy));\n```\n\n### How it works\n\u003Cimg src='https:\u002F\u002Fgithub.com\u002Forhanobut\u002Flogger\u002Fblob\u002Fmaster\u002Fart\u002Fhow_it_works.png'\u002F>\n\n\n### More\n- Use filter for a better result. PRETTY_LOGGER or your custom tag\n- Make sure that wrap option is disabled\n- You can also simplify output by changing settings.\n\n\u003Cimg src='https:\u002F\u002Fgithub.com\u002Forhanobut\u002Flogger\u002Fblob\u002Fmaster\u002Fart\u002Flogcat_options.png'\u002F>\n\n- Timber Integration\n```java\n\u002F\u002F Set methodOffset to 5 in order to hide internal method calls\nTimber.plant(new Timber.DebugTree() {\n  @Override protected void log(int priority, String tag, String message, Throwable t) {\n    Logger.log(priority, tag, message, t);\n  }\n});\n```\n\n### License\n\u003Cpre>\nCopyright 2018 Orhan Obut\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:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-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\u002Fpre>\n","Logger 是一个适用于 Android 的简单、美观且功能强大的日志工具。它支持多种日志级别，包括调试、错误、警告等，并且能够以格式化的方式输出日志信息，支持字符串格式化参数以及集合类型的数据打印。此外，Logger 还提供了 JSON 和 XML 格式的支持，方便开发者进行复杂数据结构的日志记录。通过自定义格式策略，用户可以灵活调整日志的显示样式和内容，甚至可以选择将日志保存到文件中。此项目特别适合需要在开发过程中高效排查问题或监控应用状态的 Android 开发者使用。",2,"2026-06-11 02:58:00","top_language"]