Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Do I Get Default Logging When Using Modules? #1177

Open
opticyclic opened this issue Oct 1, 2020 · 0 comments
Open

How Do I Get Default Logging When Using Modules? #1177

opticyclic opened this issue Oct 1, 2020 · 0 comments

Comments

@opticyclic
Copy link

If I start json-server with the default options I get a detailed console log on startup:

json-server --watch db.json

\{^_^}/ hi!

Loading db.json
Done

Resources
http://localhost:3000/posts
http://localhost:3000/comments
http://localhost:3000/profile

Home
http://localhost:3000

Type s + enter at any time to create a snapshot of the database

Watching...

However, if I use a module following the example and start with node server.js it just has a basic output:

node server.js
JSON Server is running

How do I start with modules but also get the default logging output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant