{"id":18609652,"url":"https://github.com/unlight/nestolog","last_synced_at":"2026-03-06T18:47:37.365Z","repository":{"id":57310255,"uuid":"331878382","full_name":"unlight/nestolog","owner":"unlight","description":"Logger for NestJS, implements `LoggerService`","archived":false,"fork":false,"pushed_at":"2025-01-25T18:52:07.000Z","size":575,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T06:39:05.231Z","etag":null,"topics":["logger","logging","nestjs","nestjs-logger","nestolog","ololog"],"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/unlight.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-22T08:05:44.000Z","updated_at":"2025-01-25T18:52:08.000Z","dependencies_parsed_at":"2024-09-30T04:00:34.503Z","dependency_job_id":"ecbdff47-fd3b-4635-a655-fcdc93468588","html_url":"https://github.com/unlight/nestolog","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":0.303030303030303,"last_synced_commit":"9bd63257ed91e24232daa0423c3fcf853b1e402e"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/unlight/nestolog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fnestolog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fnestolog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fnestolog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fnestolog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unlight","download_url":"https://codeload.github.com/unlight/nestolog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fnestolog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30191584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T18:45:49.703Z","status":"ssl_error","status_checked_at":"2026-03-06T18:45:46.406Z","response_time":250,"last_error":"SSL_read: 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":["logger","logging","nestjs","nestjs-logger","nestolog","ololog"],"created_at":"2024-11-07T03:06:46.052Z","updated_at":"2026-03-06T18:47:37.348Z","avatar_url":"https://github.com/unlight.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nestolog\n\nLogger for NestJS, implements `LoggerService`. Based on [ololog](https://github.com/xpl/ololog)\n\n\u003ca target=\"_blank\" href=\"https://raw.githubusercontent.com/unlight/nestolog/master/screenshots/a-1673.png\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/unlight/nestolog/master/screenshots/a-0830.png\"\u003e\u003c/img\u003e\u003c/a\u003e\n\n## Install\n\n```sh\nnpm install --save-dev nestolog\n\n```\n\n## Usage\n\n```ts\nimport { Logger } from '@nestjs/common';\nimport { NestologModule } from 'nestolog';\n\n@Module({\n  imports: [NestologModule.register(options)],\n})\nexport class AppModule {}\n```\n\n## Use as the main Nest Logger\n\n```ts\nconst app = await NestFactory.create(AppModule);\napp.useLogger(app.get(NestoLogger));\n```\n\nIt's not recommended to use this logger in production, since it's relative slow.\n\n### Options\n\n[Ololog configuration](https://github.com/xpl/ololog#configuration) and plus custom configuration:\n\n```ts\n/**\n * Format date using https://github.com/lukeed/tinydate\n */\ntimeFormat: undefined as undefined | string,\n/**\n * Limit of context message.\n */\ncontextLimit: 13,\n/**\n * Word wrap width for message.\n * If 0 (default) tries to auto detect.\n * If -1 disable\n */\nmessageColumnWidth: 0,\n/**\n * Alternative locate. Default ololog's locate add callee info to the last non-empty string\n * Custom locate add callee info on next new line.\n */\ncustomLocate: undefined as undefined | boolean | typeof customLocateDefault,\n/**\n * Place of callee info.\n * 'bottom' - next on new line (default)\n * 'column' - between tag and message columnized\n * 'context' - in context column if context is empty\n */\ncustomLocatePosition: 'bottom' as 'bottom' | 'column' | 'context',\n/**\n * Limit callee info length in case of customLocatePosition = 'column'\n */\ncustomLocateColumnLimit: 30,\n```\n\n## Create instance by static method\n\n```ts\nconst app = await NestFactory.create(AppModule, {\n  logger: NestoLogger.create(),\n});\n```\n\n## Development\n\n- ololog pipeline: stringify trim lines concat indent tag time locate join render returnValue\n\n## Resources\n\n### Context Candidates\n\n- https://github.com/Papooch/nestjs-cls\n- https://github.com/nestjs-steroids/async-context\n- https://github.com/yort-feng/http-context-nodejs\n- https://github.com/abonifacio/nestjs-request-context\n- https://github.com/medibloc/nestjs-request-context\n- https://gist.github.com/bengry/924a9b93c25d8a98bffdfc0a847f0dbe\n\n## License\n\n[MIT License](https://opensource.org/licenses/MIT) (c) 2025\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Fnestolog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funlight%2Fnestolog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Fnestolog/lists"}