# Ghost Logging not working

**URL:** <https://forum.ghost.org/t/ghost-logging-not-working/12907>\
**Category:** Installation\
**Created:** [March 23, 2020, 5:58pm UTC](https://forum.ghost.org/t/ghost-logging-not-working/12907 "2020-03-23T17:58:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elijahsgh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/elijahsgh/32/6949_2.png) [@elijahsgh](https://forum.ghost.org/u/elijahsgh)\
**Post date:** [March 23, 2020, 5:58pm UTC](https://forum.ghost.org/t/ghost-logging-not-working/12907/1 "2020-03-23T17:58:42Z")

</div>

I’m trying to use Ghost as an express app and the logging does not seem to work. I have enabled `transports: ["stdout", "file"]` but the files are blank and nothing is on stdout.

Here’s how I am starting Ghost (modified from original index.js):

```auto
debug('Initialising Ghost');
ghost().then(function (ghostServer) {
    // Mount our Ghost instance on our desired subdirectory path if it exists.
    parentApp.use(urlService.utils.getSubdir(), ghostServer.rootApp);
    ghostServer.logStartMessages();
});

createServer(parentApp).listen();

```

With the .logStartMessages() call above I see the startup messages (“press ctrl+c to stop”, etc) but nothing after that. Nothing in files or logs.

Is there something else that needs to be initialized? Any hints on using Ghost 3 as an express app?

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [March 23, 2020, 6:00pm UTC](https://forum.ghost.org/t/ghost-logging-not-working/12907/2 "2020-03-23T18:00:32Z")

</div>

Running Ghost as an express app is not supported. What is the end goal that you’re trying to achieve?

---

<div class="post-metadata">

**Author:** ![elijahsgh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/elijahsgh/32/6949_2.png) [@elijahsgh](https://forum.ghost.org/u/elijahsgh)\
**Post date:** [March 23, 2020, 6:05pm UTC](https://forum.ghost.org/t/ghost-logging-not-working/12907/3 "2020-03-23T18:05:50Z")

</div>

The end result should be a Search feature (via express), a mostly static landing page, and the ghost blog on /blogs. I was wanting to compose them all as a single node application and route it through nginx unit for the benefits of TLS offloading, serving static content, etc.

I could certainly set up proxies, etc, for all of the above but I’ve found posts on these forums and other places that described using Ghost as an express app. I did not realize it was unsupported. It does seem to work without issue _except_ that I see no logs.

---

<div class="post-metadata">

**Author:** ![elijahsgh](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/elijahsgh/32/6949_2.png) [@elijahsgh](https://forum.ghost.org/u/elijahsgh)\
**Post date:** [March 24, 2020, 6:09pm UTC](https://forum.ghost.org/t/ghost-logging-not-working/12907/4 "2020-03-24T18:09:57Z")

</div>

Just as an update for future Googlers, Ghost as an express app and express apps with Ghost both work as expected and seems to be called out as a usage in the comments of ghost-server.js

The logging problem I seem to be having seems to be somehow related to nginx unit. 🤔
