Skip to content

Commit 990a15d

Browse files
committed
fix: enhance log message formatting for AdminForth availability
1 parent 7b4ac41 commit 990a15d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

adminforth/commands/createApp/templates/index.ts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
9292
});
9393

9494
admin.express.listen(port, () => {
95-
logger.info(`\n⚡ AdminForth is available at http://localhost:${port}${ADMIN_BASE_URL}\n`);
95+
logger.info(`\x1b[38;5;249m ⚡ AdminForth is available at\x1b[1m\x1b[38;5;46m http://localhost:${port}${ADMIN_BASE_URL}\n`);
9696
});
9797
}

dev-demo/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { FICTIONAL_CAR_BRANDS, FICTIONAL_CAR_MODELS_BY_BRAND, ENGINE_TYPES, BODY
1616
import passkeysResource from './resources/passkeys.js';
1717
import carsDescriptionImage from './resources/cars_description_image.js';
1818
import translations from "./resources/translations.js";
19-
import { logger } from 'adminforth';
19+
import { logger, afLogger } from '../adminforth/modules/logger.js';
2020

2121
const ADMIN_BASE_URL = '';
2222

@@ -283,6 +283,6 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
283283
});
284284

285285
admin.express.listen(port, () => {
286-
logger.info(`⚡ AdminForth is available at http://localhost:${port}${ADMIN_BASE_URL}\n`);
286+
logger.info(`\x1b[38;5;249m ⚡ AdminForth is available at\x1b[1m\x1b[38;5;46m http://localhost:${port}${ADMIN_BASE_URL}\n`);
287287
});
288288
}

0 commit comments

Comments
 (0)