{"id":17093134,"url":"https://github.com/souvikinator/logto","last_synced_at":"2026-05-18T15:32:02.297Z","repository":{"id":53213524,"uuid":"353613673","full_name":"souvikinator/logto","owner":"souvikinator","description":"minimal NodeJs module to make log files on the go","archived":false,"fork":false,"pushed_at":"2021-04-01T07:34:24.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-31T13:32:44.766Z","etag":null,"topics":["log-files","logger","logto","nodejs","nodejs-modules"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/logto","language":"JavaScript","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/souvikinator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-01T07:30:00.000Z","updated_at":"2022-08-25T03:56:49.000Z","dependencies_parsed_at":"2022-08-29T11:40:52.008Z","dependency_job_id":null,"html_url":"https://github.com/souvikinator/logto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/souvikinator/logto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Flogto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Flogto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Flogto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Flogto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/souvikinator","download_url":"https://codeload.github.com/souvikinator/logto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvikinator%2Flogto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33182739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["log-files","logger","logto","nodejs","nodejs-modules"],"created_at":"2024-10-14T14:04:51.823Z","updated_at":"2026-05-18T15:32:02.281Z","avatar_url":"https://github.com/souvikinator.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logto\n\nA minimal nodejs log file maker on the go.\n\nIf any bug is encountered, please do report.\n\n## Todo\n\n- [ ] Allow users to add custom logging function\n\n## usage\n\n```js\nconst logto=require('logto);\nconst testlogger=new logto({\n    dir:\"your/preffered/dir\",\n    file:\"your_log_file_name.log\"\n});\n\n// do some stuff\ntestlogger.log(\"this is first write\");\n// do some stuff\ntestlogger.log(\"this is second write\");\n// do some stuff\ntestlogger.log(\"this is third write\");\n// want to get logfile location on the run?\nconsole.log(testlogger.logfile);\n// done with everything?\n// make sure to do this\ntestlogger.end();\n```\n\n## API\n\n### logto(options)\n\n```\noptions = {\n  dir: String  \n  file: String\n  mute: Boolean \n}\n```\n  `options.dir`: directory where log file needs to be saved, (if dir entered doesn't exists then logto creates one)\n `options.file`: name of log file\n `options.mute`:(default: true)if one wants to log into file as well as print the data on the screen then set mute: false\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouvikinator%2Flogto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouvikinator%2Flogto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouvikinator%2Flogto/lists"}