Skip to content

feat: create consola instance to improve logging #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shivarm
Copy link
Member

@shivarm shivarm commented Apr 1, 2025

improve logging sprint with consola, see the current following logs for vidur

yarn dev
yarn run v1.22.22
$ nuxt dev
Nuxt 3.16.1 with Nitro 2.11.8                                                                         nuxi  1:12:53 pm
                                                                                                            1:12:53 pm
  ➜ Local:    http://localhost:3001/
  ➜ Network:  use --host to expose

ℹ Using default Tailwind CSS file                                                         nuxt:tailwindcss 1:12:55 pm
ℹ Using zod with vee-validate                                                                              1:12:55 pm
  ➜ DevTools: press Shift + Alt + D in the browser (v2.3.2)                                                 1:12:55 pm

ℹ Running with compatibility version 4                                                                nuxt 1:12:56 pm
✔ Vite client built in 64ms                                                                                1:12:58 pm
✔ Vite server built in 1412ms                                                                              1:12:59 pm
✔ Nuxt Nitro server built in 4889ms                                                                  nitro 1:13:06 pm
ℹ Vite client warmed up in 5ms                                                                             1:13:06 pm
ℹ Seeding Database
◐ Connecting to PostgreSQL
ℹ Vite server warmed up in 2738ms                                                                          1:13:09 pm
✔ Connected to PostgreSQL
ℹ Current Seed Version 3 Total Seed Versions 3
ℹ Mounting files on ./.data
ℹ Mounting local driver.
ℹ Seeding Cache
ℹ Reusing existing database connection.
◐ Checking if access key present
✔ Access key not found, it means vidur instance is setup
ℹ Reusing existing database connection.
ℹ [Tue Apr 01 2025 13:13:12 GMT+0530 (India Standard Time)]: Marked 0 postings as expired.
ℹ [PUBLIC] postings page found 0 postings.
ℹ grabbing asset ce66f077-c7da-45a6-b49c-97ab25b40e57

Comment on lines +4 to +6
defaults: {
tag: 'Vidur',
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will insure vidur log

@shivarm
Copy link
Member Author

shivarm commented Apr 1, 2025

I have added tag so current log look like and it give us clear structure

[Vidur] ℹ Seeding Database
[Vidur] ◐ Connecting to PostgreSQL
ℹ Vite server warmed up in 3421ms                                                                                                                                 8:12:02 am
[Vidur] ✔ Connected to PostgreSQL
[Vidur] ℹ Current Seed Version 3 Total Seed Versions 3
[Vidur] ℹ Mounting files on ./.data
[Vidur] ℹ Mounting local driver.
[Vidur] ℹ Seeding Cache
[Vidur] ℹ Reusing existing database connection.
[Vidur] ◐ Checking if access key present
[Vidur] ℹ Access key not found, it means vidur instance is setup
[Vidur] ℹ Reusing existing database connection.
[Sun Mar 30 2025 08:12:05 GMT+0530 (India Standard Time)]: Marked 0 postings as expired.
[Vidur] ℹ [PUBLIC] postings page found 0 postings.
[Vidur] ℹ grabbing asset ce66f077-c7da-45a6-b49c-97ab25b40e57

@amandesai01 amandesai01 mentioned this pull request Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant