[IDEA] Show more info on the log
Thank you for this tiny and powerful server.
Right now, the twserver only shows:
TW HTTP Server Listening on :8080
It can show
TW HTTP Serving on http://127.0.0.1:8080
This way on most terminal one can click the address to open the browser.
Also an extended mode of log, for example the below log is created when you use TW on node.js with official FileSystem plugin.
tiddlywiki editions/develop --verbose --server %PORT% $:/core/save/all text/plain text/html
Boot log:
Startup task: load-modules
Startup task: info after: load-modules before: startup
Startup task: plugins after: load-modules before: startup
Startup task: startup after: load-modules
Startup task: story after: startup
Startup task: redefine-relinkTiddler after: load-modules before: commands
Startup task: commands platforms: node after: story
Executing command: server 24656 $:/core/save/all text/plain text/html
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
Serving on http://127.0.0.1:24656
(press ctrl-C to exit)
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
Hey,
Thank you for this tiny and powerful server.
Right now, the twserver only shows:
TW HTTP Server Listening on :8080
The server only shows the port if the host setting is left empty. By default, it binds to all available interfaces in both IPv4 and IPv6, which is why the host isn't displayed in the output.
If you want the server to listen specifically on localhost (127.0.0.1), you can set that in the config file:
{
"Host": "127.0.0.1"
}
It sounds like you'd like the host to be prefixed with "http://" so that you can click the link directly in the terminal, correct?
Also an extended mode of log, for example the below log is created when you use TW on node.js with official FileSystem plugin. ...
I'm a bit confused about this request, are you asking for more detailed debug messages in the log output? Do you have a example in mind? I was already considering revamping the log system with slog and lumberjack for v0.5.
Thanks for your feedback.
I'm a bit confused about this request, are you asking for more detailed debug messages in the log output? Do you have a example in mind?
Thank you for your reply! Well, the log I posted above is what displayed when the official tiddlyweb and filesystem plugins are used with TiddlyWiki on node.js In simple words, I asked to show more log information on the screen.
It sounds like you'd like the host to be prefixed with "http://" so that you can click the link directly in the terminal, correct?
Actually, I like to see the full address. e.g. https://127.0.0.1:8080 or https://localhost:8000 just to be clickable.
Please ignore if irrelevant.