mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-02-02 04:47:56 +01:00
Add info message on app boot
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
|
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
|
||||||
|
import Logger from "@ioc:Adonis/Core/Logger";
|
||||||
|
|
||||||
export default class AppProvider {
|
export default class AppProvider {
|
||||||
public static needsApplication = true
|
public static needsApplication = true
|
||||||
@@ -12,13 +13,16 @@ export default class AppProvider {
|
|||||||
|
|
||||||
public async boot () {
|
public async boot () {
|
||||||
// IoC container is ready
|
// IoC container is ready
|
||||||
|
Logger.info('Application is booting. Please wait...')
|
||||||
}
|
}
|
||||||
|
|
||||||
public async ready () {
|
public async ready () {
|
||||||
// App is ready
|
// App is ready
|
||||||
|
Logger.info('Application is ready!')
|
||||||
}
|
}
|
||||||
|
|
||||||
public async shutdown () {
|
public async shutdown () {
|
||||||
// Cleanup, since app is going down
|
// Cleanup, since app is going down
|
||||||
|
Logger.info('Application is closing. Bye...')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user