[GH-ISSUE #56] How can I use frontail to display log file output in my own website/view? #39

Closed
opened 2026-03-03 16:03:54 +03:00 by kerem · 1 comment
Owner

Originally created by @atljeremy on GitHub (Nov 10, 2015).
Original GitHub issue: https://github.com/mthenw/frontail/issues/56

I have an existing website that I'd like to be able to show log file output in. Instead of linking to the frontail index.html, how can I configure frontail to work with my own website/view?

I started poking around and I copied over the app.js and socket.io.js into my own website, started the frontail service as a daemon, and tried launching my site. I get the following error in the console...

rentpath_seo_tool

For testing purposes I went into the socket.io.js and hardcoded all of the port options to 9001 and the error went away and no new errors showed up. However, I'm noticing the __NAMESPACE__ placeholder isn't being set in my website. It does get set properly in the frontail index.html site. What sets this variable and how can I hook it up to my site?

Originally created by @atljeremy on GitHub (Nov 10, 2015). Original GitHub issue: https://github.com/mthenw/frontail/issues/56 I have an existing website that I'd like to be able to show log file output in. Instead of linking to the frontail `index.html`, how can I configure frontail to work with my own website/view? I started poking around and I copied over the `app.js` and `socket.io.js` into my own website, started the frontail service as a daemon, and tried launching my site. I get the following error in the console... ![rentpath_seo_tool](https://cloud.githubusercontent.com/assets/1019253/11062989/6ae1af5a-8781-11e5-9bee-21b0e9d10891.png) For testing purposes I went into the `socket.io.js` and hardcoded all of the `port` options to 9001 and the error went away and no new errors showed up. However, I'm noticing the `__NAMESPACE__` placeholder isn't being set in my website. It does get set properly in the frontail index.html site. What sets this variable and how can I hook it up to my site?
kerem closed this issue 2026-03-03 16:03:55 +03:00
Author
Owner

@mthenw commented on GitHub (Nov 13, 2015):

However, I'm noticing the NAMESPACE placeholder isn't being set in my website. It does get set properly in the frontail index.html site. What sets this variable and how can I hook it up to my site?

It's being set before sending index.html to client here (https://github.com/mthenw/frontail/blob/master/index.js#L52). So without that you won't be able to get log entries.

Maybe it would be easier to run frontail in a iframe?

<!-- gh-comment-id:156278136 --> @mthenw commented on GitHub (Nov 13, 2015): > However, I'm noticing the **NAMESPACE** placeholder isn't being set in my website. It does get set properly in the frontail index.html site. What sets this variable and how can I hook it up to my site? It's being set before sending index.html to client here (https://github.com/mthenw/frontail/blob/master/index.js#L52). So without that you won't be able to get log entries. Maybe it would be easier to run frontail in a iframe?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#39
No description provided.