How to use the rest-hapi.logger function in rest-hapi

To help you get started, we’ve selected a few rest-hapi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JKHeadley / appy-backend / index.js View on Github external
const startServer = async function() {
  try {
    const manifest = Manifest.get('/')
    const server = await Glue.compose(manifest, composeOptions)

    await server.start()

    RestHapi.logUtil.logActionComplete(
      RestHapi.logger,
      'Server Initialized',
      server.info
    )
  } catch (err) {
    console.error(err)
    process.exit(1)
  }
}
github JKHeadley / appy-backend / api / api.js View on Github external
server.start(function (err) {
              if (err) {
                console.error('Failed to start server:', err);
              }

              server.log('info', 'Server initialized: ' + server.info);

              restHapi.logUtil.logActionComplete(restHapi.logger, "Server Initialized", server.info);
            });
          });
github JKHeadley / appy-backend / backend / server.js View on Github external
server.start(() => {
    RestHapi.logUtil.logActionComplete(RestHapi.logger, "Server Initialized", server.info);
  });
});