{"id":18084989,"url":"https://github.com/coderofsalvation/express-logio","last_synced_at":"2025-09-12T12:44:47.643Z","repository":{"id":146965156,"uuid":"243238821","full_name":"coderofsalvation/express-logio","owner":"coderofsalvation","description":"simple realtime log monitoring (standalone) as express middleware (parse-server compatible) #log.io #winston3 #Parse-server","archived":false,"fork":false,"pushed_at":"2020-07-16T14:34:24.000Z","size":280,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:22:34.001Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2020-02-26T10:46:44.000Z","updated_at":"2020-07-16T14:34:26.000Z","dependencies_parsed_at":"2023-05-05T22:30:31.638Z","dependency_job_id":null,"html_url":"https://github.com/coderofsalvation/express-logio","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/coderofsalvation%2Fexpress-logio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fexpress-logio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fexpress-logio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fexpress-logio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/express-logio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415976,"owners_count":20935387,"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-10-31T15:08:57.051Z","updated_at":"2025-04-06T00:13:49.323Z","avatar_url":"https://github.com/coderofsalvation.png","language":"JavaScript","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"readme":"![](https://github.com/coderofsalvation/express-logio/raw/master/screenshot.gif)\r\n\r\nThanks to the nifty standalone [log.io](https://npmjs.com/log.io) package you can easily view events (which should not be sent to internet)\r\n\r\n## Usage\r\n\r\n```javascript\r\napp.use( require('express-logio')({\r\n  app,\r\n  url:'/log',\r\n  winston: require('winston'),\r\n  port:6689,\r\n  webport:6688,\r\n  node_name: 'backend',\r\n  host: '0.0.0.0',\r\n  forwardConsole:true\r\n}))\r\n\r\n// output to log.io 'backend' stream\r\nconsole.log(\"hello default\")\r\n// output to log.io 'mystream' stream\r\nconsole.log(\"this is a test\",{steam:\"mystream\"})\r\n```\r\n\r\n\u003e Now surf to http://localhost:6688\r\n\r\ncpu, memory and http-requests are logged automatically.\r\nThe difference between port 6689 and 6688 can be read  in the [log.io docs](https://npmjs.com/log.io)\r\n\r\n\u003e NOTE 1: set environment variable `DEBUG=1` to monitor connection errors \r\n\r\n\u003e NOTE 2: Parse-server users: see parse-server section below\r\n\r\n## Install\r\n\r\n    npm install express-logio log.io winston --save\r\n\r\n\u003e NOTE: leave out winston if you're already using it in your express app\r\n\r\n## Options\r\n\r\n```javascript\r\n{\r\n  app: app,                    // the express app\r\n  url:'/log',                  // where to access the log.io web interface\r\n  winston: require('winston')  // your winston logger\r\n  port:6689,                   // default log.io port\r\n  webport:6688,                // default log.io webserverport\r\n  node_name: 'backend',        // default name\r\n  host: '127.0.0.1',           // host ip\r\n  forwardConsole:true          // forwards console.log e.g. to log.io\r\n}\r\n```\r\n\r\n\r\n## Parse-server\r\n\r\nPass the parse logger like this:\r\n\r\n```javascript\r\nvar {logger} = require('parse-server')\r\n\r\napp.use( require('express-logio')({\r\n  winston: logger.adapter,\r\n  ...\r\n}))\r\n```\r\n\r\n## FAQ\r\n\r\n* where are the logfile(s)?\r\n\r\nThere aren't.\r\nCheck the [log.io](https://npmjs.com/log.io) docs to add logfiles as well.\r\n\r\n* how do I search logfiles?\r\n\r\ncheck [https://stackoverflow.com/questions/35776646/how-do-i-see-logs-on-parse-server](https://stackoverflow.com/questions/35776646/how-do-i-see-logs-on-parse-server)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fexpress-logio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fexpress-logio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fexpress-logio/lists"}