backend-plugin-api: update lifecycle service to use a logger instead of labels

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-01-10 13:35:34 +01:00
parent 92b0ef65c1
commit bbcc1041cf
7 changed files with 20 additions and 15 deletions
@@ -14,14 +14,18 @@
* limitations under the License.
*/
import { LoggerService } from './LoggerService';
/**
* @public
**/
export type LifecycleServiceShutdownHook = {
fn: () => void | Promise<void>;
/** Labels to help identify the shutdown hook */
labels?: Record<string, string>;
/**
* Optional {@link LoggerService} that will be used for logging instead of the default logger.
*/
logger?: LoggerService;
};
/**