{"id":15529089,"url":"https://github.com/marcinorlowski/webnetlog","last_synced_at":"2026-04-29T09:32:57.403Z","repository":{"id":101431990,"uuid":"83212556","full_name":"MarcinOrlowski/WebnetLog","owner":"MarcinOrlowski","description":"Log class extension for Android for much easier and useful logging in your code","archived":false,"fork":false,"pushed_at":"2017-04-24T22:36:56.000Z","size":286,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T10:52:02.241Z","etag":null,"topics":["android","library","log","logger","logging"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarcinOrlowski.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2017-02-26T13:58:40.000Z","updated_at":"2017-03-12T19:22:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9dcc8a0-a848-481e-9dcd-bfcf8299ca33","html_url":"https://github.com/MarcinOrlowski/WebnetLog","commit_stats":{"total_commits":46,"total_committers":3,"mean_commits":"15.333333333333334","dds":"0.10869565217391308","last_synced_commit":"c5767ad91312a2c1148295e3df942fed85f8006d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/MarcinOrlowski/WebnetLog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2FWebnetLog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2FWebnetLog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2FWebnetLog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2FWebnetLog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcinOrlowski","download_url":"https://codeload.github.com/MarcinOrlowski/WebnetLog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcinOrlowski%2FWebnetLog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32420024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","library","log","logger","logging"],"created_at":"2024-10-02T11:16:19.547Z","updated_at":"2026-04-29T09:32:57.374Z","avatar_url":"https://github.com/MarcinOrlowski.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Release](https://jitpack.io/v/MarcinOrlowski/webnetlog.svg)](https://jitpack.io/#MarcinOrlowski/webnetlog)\n![Downloads](https://jitpack.io/v/MarcinOrlowski/webnetlog/month.svg)\n[![Dependency Status](https://dependencyci.com/github/MarcinOrlowski/WebnetLog/badge)](https://dependencyci.com/github/MarcinOrlowski/WebnetLog)\n\n![WebnetLog](img/webnet-log-200.png)\n\nWebnetLog - Logging made easy\n=============================\n `WebnetLog` is small extension of [android.util.Log](https://developer.android.com/reference/android/util/Log.html) \n class, bringing simpler usage and automatically adding\n useful technical information to log entries to simplify debugging of your Android applications.\n\nInstallation\n============\n\n Edit your master `gradle.build` file and **add** `maven { url 'https://jitpack.io' }` to your current\n `repositories` block content (if you use other jitpack hosted libraries, then this step can be skipped):\n\n    allprojects {\n      repositories {\n        maven { url 'https://jitpack.io' }\n        }\n    }\n\n Next, edit your **module**'s `build.gradle` and the following dependency:\n\n    compile 'com.github.MarcinOrlowski:WebnetLog:\u003cVERSION\u003e'\n\n For recent value of `\u003cVERSION\u003e` consult [library releases](https://github.com/MarcinOrlowski/WebnetLog/releases)\n or jitpack badge: [![Release](https://jitpack.io/v/MarcinOrlowski/webnetlog.svg)](https://jitpack.io/#MarcinOrlowski/WebnetLog)\n\nLog content\n-----------\n The main purpose of WebnetLog class was making debugging easier. This means you should your log entries\n more useful, by providing additional information helping locating adds some additional debug information\n to log message to make it more useful at less efforts. Let's see example usage of standard Log class:\n\n    Log.d(\"TAG\", \"foo\");\n\n This would produce following entry (timestamp and package id removed) in your log:\n\n    06-20 15:49:36.640 29827-29834/pkg.id D/TAG﹕foo\n\n This is not very useful, as all you can tell from this entry is that \"foo\" was looged, not to mention\n I personally never found tagging log entries useful. I prefer more clear information - class name,\n line numbers etc. So let's check what WebnetLog could give you out of the box. When using WebnetLog\n you do not need to give a tag (but you can if you want, of course), just the message:\n\n    WebnetLog.d(\"foo\");\n\n and you would get output as follow:\n\n    06-20 15:49:36.640 29827-29834/pkg.id D/WebnetLog﹕StartActivity$Stasis/test()[+25]: foo\n\n As you can see we can tell, that this log entry was produced by method `d()`, invoked in inner class\n `Stasis` of `StartActivity` class, in method `test()`, in line `25` of the source file.\n\n Even better, you can just ommit the arguments, and just do:\n\n    WebnetLog.d();\n\n to get almost the same information logged:\n\n     06-20 15:49:36.640 29827-29834/pkg.id D/WebnetLog﹕StartActivity$Stasis/test()[+25]\n\n\nUsage\n-----\n WebnetLog's API is almost identical to standard Log class, with the exception there's no `TAG`\n argument used. All methods (`i()`, `w()`, `d()`, `e()`) are there with additional signatures for\n easier logging.\n\n Instead of doing:\n\n    Log.d(TAG, \"foo bar\");\n\n you should be now calling:\n\n    WebnetLog.d(\"foo bar\");\n\n As class adds own content to the logged message, your log message is now optional and you can safely do:\n\n    WebnetLog.d();\n\n and still have lot of useful debug info logged:\n\n    06-20 15:49:36.640 29827-29834/pkg.id D/WebnetLog﹕StartActivity$Stasis/test()[+25]\n\n\nTagging\n-------\n If you do not want default `WebnetLog` tag, then you can use `setTag(\"string\")`\n to set up different tag (tag is static, so you need to set it only once):\n\n    WebnetLog.setTag(\"MyTag\");\n    WebnetLog.d();\n\n would produce:\n\n    06-20 15:49:36.640 29827-29834/pkg.id D/MyTag﹕StartActivity$Stasis/test()[+25]\n\n You can also pass any object to `setTag()` and then tag will be set to object class'\n simple name:\n\n    Class Foo {\n      public void test() {\n        WebnetLog.setTag(this);\n        WebnetLog.d();\n      }\n    }\n\nwould produce:\n\n    06-20 15:49:36.640 29827-29834/pkg.id D/Foo﹕Foo/test()[+25]\n\n\nRemoving logs from production builds\n------------------------------------\n You can safely strip WebnetLog class during minification, and library comes with ProGuard config\n bundled. If for any reason you use it differently, add this to your ProGuard config file:\n\n    -assumenosideeffects class com.webnetmobile.tools.webnetlog.WebnetLog {\n         public static boolean isLoggable(java.lang.String, int);\n         public static int v(...);\n         public static int i(...);\n         public static int w(...);\n         public static int d(...);\n         public static int e(...);\n    }\n\n\n\nProject support\n===============\n  \n `WebnetLog` is free software and you can use it fully free of charge in any of your projects, open source or \n commercial, however if you feel it prevent you from reinventing the wheel, helped having your projects done or simply\n saved you time and money  then then feel free to donate to the project by sending some BTC to \n `1LbfbmZ1KfSNNTGAEHtP63h7FPDEPTa3Yo`.\n  \n ![BTC](img/btc.png)\n  \n\nContributing\n============\n  \n Please report any issue spotted using [GitHub's project tracker](https://github.com/MarcinOrlowski/WebnetLog/issues).\n   \n If you'd like to contribute to the this project, please [open new ticket](https://github.com/MarcinOrlowski/WebnetLog/issues) \n **before doing any work**. This will help us save your time in case I'd not be able to accept such changes. But if all is good and \n clear then follow common routine:\n  \n  * fork the project\n  * create new branch\n  * do your changes\n  * send pull request\n \n  \nLicense\n=======\n  \n  * Written and copyrighted \u0026copy;2015-2017 by Marcin Orlowski \u003cmail (#) marcinorlowski (.) com\u003e\n  * `WebnetLog` is open-sourced library licensed under the Apache 2.0 license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcinorlowski%2Fwebnetlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcinorlowski%2Fwebnetlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcinorlowski%2Fwebnetlog/lists"}