summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/index.ts
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-05-31 18:29:22 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-31 18:29:22 +0000
commit3fa6fd4c5a9f6bf5ca522b7dffe07c77626e6403 (patch)
tree7660b220d07a8e30acb11426db4a1a487b4b3a1a /cds-ui/server/src/index.ts
parent32d132a78288521798d302cafbd9a7eac9121cae (diff)
parent174110278bd235b7bf878fc4bd773078d633ce00 (diff)
Merge "Add logger to the server"
Diffstat (limited to 'cds-ui/server/src/index.ts')
-rw-r--r--cds-ui/server/src/index.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cds-ui/server/src/index.ts b/cds-ui/server/src/index.ts
index 04852494f..3afc0a7f4 100644
--- a/cds-ui/server/src/index.ts
+++ b/cds-ui/server/src/index.ts
@@ -19,9 +19,9 @@ limitations under the License.
============LICENSE_END============================================
*/
-import { CdsUiServerApplication } from './application';
import { ApplicationConfig } from '@loopback/core';
-
+import { CdsUiServerApplication } from './application';
+import { logger } from './logger/logger';
export { CdsUiServerApplication };
export async function main(options: ApplicationConfig = {}) {
@@ -30,8 +30,8 @@ export async function main(options: ApplicationConfig = {}) {
await app.start();
const url = app.restServer.url;
- console.log(`Server is running at ${url}`);
- console.log(`Try ${url}/ping`);
+ logger.info(`Server is running at ${url}`);
+ logger.info(`Try ${url}/ping`);
return app;
}