Add info message on app boot

This commit is contained in:
2021-10-08 15:08:58 +02:00
parent cfbd359b1e
commit bd0b523598

View File

@@ -1,4 +1,5 @@
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
import Logger from "@ioc:Adonis/Core/Logger";
export default class AppProvider {
public static needsApplication = true
@@ -12,13 +13,16 @@ export default class AppProvider {
public async boot () {
// IoC container is ready
Logger.info('Application is booting. Please wait...')
}
public async ready () {
// App is ready
Logger.info('Application is ready!')
}
public async shutdown () {
// Cleanup, since app is going down
Logger.info('Application is closing. Bye...')
}
}