{"id":21493630,"url":"https://github.com/alienkevin/autolog","last_synced_at":"2025-03-17T11:41:59.642Z","repository":{"id":43992038,"uuid":"240796030","full_name":"AlienKevin/autolog","owner":"AlienKevin","description":"Automated logging for any language in VS Code","archived":false,"fork":false,"pushed_at":"2022-12-30T19:40:48.000Z","size":1325,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T21:25:24.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=KevinLi.autolog","language":"TypeScript","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/AlienKevin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-02-15T22:21:16.000Z","updated_at":"2020-02-16T13:40:28.000Z","dependencies_parsed_at":"2023-01-31T14:45:51.011Z","dependency_job_id":null,"html_url":"https://github.com/AlienKevin/autolog","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/AlienKevin%2Fautolog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fautolog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fautolog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fautolog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlienKevin","download_url":"https://codeload.github.com/AlienKevin/autolog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244029526,"owners_count":20386426,"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-23T15:43:44.904Z","updated_at":"2025-03-17T11:41:59.624Z","avatar_url":"https://github.com/AlienKevin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto Log\n\n![Auto Log Logo](./media/logo.png)\n\nAutomated logging for any language in VS Code.\n\n# Features\n\nBy pressing \u003ckbd\u003eshift\u003c/kbd\u003e+\u003ckbd\u003ealt\u003c/kbd\u003e+\u003ckbd\u003el\u003c/kbd\u003e, you can **insert** a log message for different languages, formatted and indented.\n\nBy pressing \u003ckbd\u003eshift\u003c/kbd\u003e+\u003ckbd\u003ealt\u003c/kbd\u003e+\u003ckbd\u003ec\u003c/kbd\u003e, you can **comment** out all log messages created by Auto Log.\n\nBy pressing \u003ckbd\u003eshift\u003c/kbd\u003e+\u003ckbd\u003ealt\u003c/kbd\u003e+\u003ckbd\u003eu\u003c/kbd\u003e, you can **uncomment** out all log messages created by Auto Log.\n\n# Extension Settings\n\n- `autolog.languages`: list of log settings for each language\n  - `$eSEL`: escaped selection (`\"`, `'`, `` ` `` are escaped)\n  - `$SEL`: non-escaped selection\n\n  Format:\n  ```json\n  {\n    \"\u003clanguage_name\u003e\": {\n      \"wrapper\": \"\u003c(Required) format of log messages\u003e\",\n      \"match\": \"\u003c(Required) regular expression matching a log message, used for commenting and uncommenting\u003e. Reference the default regexps below on how to write one.\",\n      \"comment\": \"\u003c(Required) single line comment symbol.\u003e\",\n      \"prefix\": \"\u003c(Optional) log prefix for this language.\u003e\"\n    }\n  }\n  ```\n\n  Default value:\n  ```json\n  {\n    \"javascript\": {\n      \"wrapper\": \"console.log('$eSEL', $SEL)\",\n      \"match\": \"^(.*\\\\b)?console\\\\.log\\\\(([^)]*)\\\\);?.*$\",\n      \"comment\": \"//\"\n    },\n    \"typescript\": {\n      \"wrapper\": \"console.log('$eSEL', $SEL)\",\n      \"match\": \"^(.*\\\\b)?console\\\\.log\\\\(([^)]*)\\\\);?.*$\",\n      \"comment\": \"//\"\n    },\n    \"elm\": {\n      \"wrapper\": \"_ = Debug.log \\\"$eSEL\\\" \u003c| $SEL\",\n      \"match\": \"^.*=\\\\s*(\\n\\\\s*)?(\\\\-*\\\\s*)*Debug\\\\.log.*$\",\n      \"comment\": \"--\",\n      \"prefix\": \"AL -\u003e \"\n    },\n    \"python\": {\n      \"wrapper\": \"print('$eSEL', $SEL)\",\n      \"match\": \"^(.*\\\\b)?print\\\\(([^)]*)\\\\).*$\",\n      \"comment\": \"#\"\n    },\n    \"default\": {\n      \"wrapper\": \"print($SEL);\",\n      \"match\": \"^(.*\\\\b)?print\\\\(([^)]*)\\\\).*$\",\n      \"comment\": \"//\"\n    }\n  }\n  ```\n  Default will be used if Auto Log doesn't find the log settings for the selected language. Follow the format to specify log settings for the languages you want that are not listed in the default value above. PRs are welcome for adding more default language log settings.\n\n- `autolog.prefix`: Prefix used for all languages' logs, except those with `prefix` property defined in the `autolog.languages`.\n\n  Format: string\n\n  Default value: `\"AL: \"`\n\n  Set `autolog.prefix` to `\"\"` (empty string) to produce unprefixed log messages. Note that Auto Log will now comment and uncomment all log messages in the file, regardless whether they are created using Auto Log.\n\n# License\nMIT\n\n# Credit\n- [Turbo Console Log](https://github.com/Chakroun-Anas/turbo-console-log)\n- [Log Wrapper](https://github.com/chrisvltn/vs-code-log-wrapper)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienkevin%2Fautolog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falienkevin%2Fautolog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienkevin%2Fautolog/lists"}