Skip to content

Commit 7b18c0a

Browse files
committed
✨ refactor(app): 调整日志打印
1 parent 5eeea35 commit 7b18c0a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/helper.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,42 +34,42 @@ export function handleError(error: unknown) {
3434

3535
export const loggerInfo = (content: string) => {
3636
if (ACTIVATION) {
37-
console.log(bgYellow("CODEG INFO HINT:"), gray(content as string));
37+
console.log(bgYellow("[CODEG INFO HINT]:"), gray(content as string));
3838
}
3939
};
4040

4141
export const loggerWarring = (content: string | unknown) => {
4242
if (ACTIVATION) {
43-
console.log(bgYellow("CODEG WARRING HINT:"), yellow(content as string));
43+
console.log(bgYellow("[CODEG WARRING HINT]:"), yellow(content as string));
4444
}
4545
};
4646

4747
export const loggerSuccess = (content: string) => {
4848
if (ACTIVATION) {
49-
console.log(bgYellow("CODEG SUCCESS HINT:"), green(content as string));
49+
console.log(bgYellow("[CODEG SUCCESS HINT]:"), green(content as string));
5050
}
5151
};
5252

5353
export const loggerError = (content: string | unknown) => {
5454
if (ACTIVATION) {
55-
console.log(bgYellow("CODEG ERROR HINT:"), red(content as string));
55+
console.log(bgYellow("[CODEG ERROR HINT]:"), red(content as string));
5656
}
5757
};
5858

5959
export const printInfo = (content: string) => {
60-
console.log(bgYellow("CODEG INFO HINT:"), gray(content as string));
60+
console.log(bgYellow("[CODEG INFO HINT]:"), gray(content as string));
6161
};
6262

6363
export const printWarring = (content: string) => {
64-
console.log(bgYellow("CODEG WARRING HINT:"), yellow(content as string));
64+
console.log(bgYellow("[CODEG WARRING HINT]:"), yellow(content as string));
6565
};
6666

6767
export const printSuccess = (content: string) => {
68-
console.log(bgYellow("CODEG SUCCESS HINT:"), green(content as string));
68+
console.log(bgYellow("[CODEG SUCCESS HINT]:"), green(content as string));
6969
};
7070

7171
export const printError = (content: string | unknown) => {
72-
console.log(bgYellow("CODEG ERROR HINT:"), red(content as string));
72+
console.log(bgYellow("[CODEG ERROR HINT]:"), red(content as string));
7373
};
7474

7575
export function isValidPackageName(projectName: string) {

0 commit comments

Comments
 (0)