{"id":20816529,"url":"https://github.com/webdevel/chromelogger-java","last_synced_at":"2026-05-28T08:31:09.815Z","repository":{"id":143204940,"uuid":"20732268","full_name":"webdevel/chromelogger-java","owner":"webdevel","description":"chromelogger-java - java server-side component for ChromeLogger extension (see https://github.com/ccampbell/chromelogger)","archived":false,"fork":false,"pushed_at":"2014-06-12T18:29:39.000Z","size":302,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T17:26:29.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdevel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-11T16:22:56.000Z","updated_at":"2019-05-22T13:30:15.000Z","dependencies_parsed_at":"2023-03-17T02:46:15.521Z","dependency_job_id":null,"html_url":"https://github.com/webdevel/chromelogger-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webdevel/chromelogger-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevel%2Fchromelogger-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevel%2Fchromelogger-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevel%2Fchromelogger-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevel%2Fchromelogger-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdevel","download_url":"https://codeload.github.com/webdevel/chromelogger-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevel%2Fchromelogger-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33601380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-17T21:34:49.738Z","updated_at":"2026-05-28T08:31:09.795Z","avatar_url":"https://github.com/webdevel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"chromelogger-java\n=================\n\n## Overview\n\nChromelogger is a Java library for logging variables to the Google Chrome console using the Chrome Logger extension.\n\nFor more information about Chrome Logger check out [http://chromelogger.com](http://chromelogger.com).\n\nThis module is designed to be used during development and not in production.  It is not thread safe, and you do not want to risk leaking sensitive data to users!\n\n## Getting Started\n\n1. Install [Chrome Logger](https://chrome.google.com/extensions/detail/noaneddfkdjfnfdakjjmocngnfkfehhd) from the Chrome Web Store\n\n2.  Click the extension icon to enable on the current tab's domain\n\n    ![toggling](http://cdn.craig.is/img/chromelogger/toggle.gif)\n\n3. Install the Java library\n\n    ```java\n    //TODO!\n    ```\n4. Download the [Apache Commons codec](http://commons.apache.org/proper/commons-codec/download_codec.cgi), and install in your build path.\n\n\n4.  Start logging\n\n    ```java\n    // TODO!\n    ```\n\n## Sending Headers\n\nSince every framework deals with setting headers slightly differently the library stores the header information and it is up to you to send it at the end of your request.\n\n\n## API Documentation\n\nThe chromelogger module exposes some of the chrome logger methods.  The others will be coming in a future release.\n\n### log(*args)\n### warn(*args)\n### error(*args)\n\nLogs data to the console.  You can pass any number of arguments just as you would in the browser.\n\n```java\n// TODO!\n```\n\n### getVersion()\n\nOutputs a string of the current version of this module\n\n### getHeader(flush=true)\n\nReturns a tuple with the header name and value to set in order to transmit your logs.\n\nIf ``flush`` argument is ``true`` all the data stored during this request will be flushed.\n\nThis is the preferred way to use this module.  At the end of each request you should call this method and add this header to the response.\n\n```java\n// TODO!\n```\n\n``getHeader()`` will return ``null`` if there is no data to log.\n\n### setHeader = null\n\nAs an alternative to ``getHeader`` you can specify a function that can be used to set a header.  The function should accept two parameters (header name and value).  Usage would look something like:\n\n```java\n//TODO!\ndef set_header(name, value):\n    # do stuff here to set header\n    pass\n\nchromelogger.set_header = set_header\n```\n\nWhen ``chromelogger.setHeader`` is not equal to ``null`` it will be called each time data is logged to set the header.  The class is a singleton so it will just keep overwriting the same header with more data as more data is added.\n\nIf you are going to use this you have to make sure to call ``reset()`` at the beginning of each request or at the end of each request in order to ensure the same data does not carry over into future requests.\n\n### reset()\n\nClears out any data that has been set during this request.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevel%2Fchromelogger-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevel%2Fchromelogger-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevel%2Fchromelogger-java/lists"}