{"id":41344550,"url":"https://github.com/bornfight/loggyslav","last_synced_at":"2026-04-20T19:06:00.572Z","repository":{"id":48485222,"uuid":"128951748","full_name":"bornfight/loggyslav","owner":"bornfight","description":"Make your Typescript/Javascript logging easier","archived":false,"fork":false,"pushed_at":"2021-07-23T08:11:28.000Z","size":328,"stargazers_count":5,"open_issues_count":15,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-23T22:34:46.935Z","etag":null,"topics":["bornfight","clean","javascript","logger","logging","nodejs","npm","open-source","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"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/bornfight.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-10T15:05:32.000Z","updated_at":"2020-04-25T18:18:01.000Z","dependencies_parsed_at":"2022-08-20T17:10:59.272Z","dependency_job_id":null,"html_url":"https://github.com/bornfight/loggyslav","commit_stats":null,"previous_names":["degordian/loggyslav"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bornfight/loggyslav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Floggyslav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Floggyslav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Floggyslav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Floggyslav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bornfight","download_url":"https://codeload.github.com/bornfight/loggyslav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Floggyslav/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32061270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"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":["bornfight","clean","javascript","logger","logging","nodejs","npm","open-source","typescript"],"created_at":"2026-01-23T06:55:36.722Z","updated_at":"2026-04-20T19:06:00.553Z","avatar_url":"https://github.com/bornfight.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# loggyslav [![Build Status](https://travis-ci.org/degordian/loggyslav.svg?branch=master)](https://travis-ci.org/degordian/loggyslav)\n\n### What can loggyslav do for you?\n\n- Make your `Typescript/Javascript` logging easier\n- Prevent you from writing `console.log` all over the code\n- Force you to write **better** code by encouraging you to write smaller methods and classes so you can easily log them \n- Give you a great tool with **smart logging** which enables you to easily trace and resolve possible bugs\n\n[![Tell me more](https://media.makeameme.org/created/curious-tell-me.jpg)](https://github.com/degordian/loggyslav)\n\n\u003e Loggyslav is an npm module which easily attaches to any `class`, `method` or `property` and watches for any call or change.\n\n\u003e When attached to a `method` it can easily track every time it is called. It can log `input parameters` and `return value`.\n\n\u003e When attached to a `property` it can easily track every time it is updated.\n\n## Usage\n\n\n#### Using simple console log as a Method logging\n```typescript\nconst simpleMethodLoggyslav = new SimpleMethodLoggyslav();\nconst targetsConfiguration: TargetsConfiguration = {\n    targets: [\n        {\n            classType: SimpleClass,\n            properties: [\"a\"],\n        },\n    ],\n};\nconst loggerConfiguration = {\n    methodLogger: simpleMethodLoggyslav,\n};\nconst loggyslav = new Loggyslav(targetsConfiguration, loggerConfiguration);\n```\n\n\n#### Using Winston.js as Method logger\n\n```typescript\nconst winstonNewLogger = new winston.Logger( {\n    level: \"info\",\n    transports: [\n        new winston.transports.Console(),\n    ],\n} );\nconst winstonLogger = new WinstonLoggyslav(winstonNewLogger);\nconst targetsConfiguration: TargetsConfiguration = {\n    targets: [\n        {\n            classType: SimpleClass,\n        },\n    ],\n};\nconst loggerConfiguration: targetsConfiguration = {\n    methodLogger: winstonLogger,\n};\n\nconst loggyslav = new Loggyslav(\n    targetsConfiguration,\n    loggerConfiguration,\n);\n```\n\n#### Using Winston.js as Error logger\n\n```typescript\nconst winstonNewLogger = new winston.Logger( {\n    level: \"error\",\n    transports: [\n        new winston.transports.Console(),\n    ],\n} );\nconst winstonLogger = new WinstonLoggyslav(winstonNewLogger);\nconst winstonErrorLogger = new WinstonErrorLoggyslav(winstonNewErrorLogger);\n\nconst targetsConfiguration: TargetsConfiguration = {\n    targets: [\n        {\n            classType: SimpleClass,\n        },\n    ],\n};\nconst loggerConfiguration: LoggerConfiguration = {\n    methodLogger: winstonLogger,\n    errorLogger: winstonErrorLogger,\n};\n\nconst loggyslav = new Loggyslav(\n    targetsConfiguration,\n    loggerConfiguration,\n);\n```\n### Features\n- [x]  Method input and output logging\n- [x]  Property change logging\n- [x]  Error logging\n- [ ] Creating easy benchmark tracking\n- [ ] Track memory consumtion\n\n### Development\n\nWant to contribute? Great!\n\n`loggyslav` is written with Typescript which builds automatically on `npm publish`. Behind every `PR` review is [Travis the guardian](https://travis-ci.org/degordian/loggyslav).\n\nBuild Typescript:\n```\nnpm run build\n```\n\nTest your code:\n```\nnpm test\n```\n\nCheck your code style:\n```\nnpm run tslint\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbornfight%2Floggyslav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbornfight%2Floggyslav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbornfight%2Floggyslav/lists"}