Skip to content
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

Logs #20

Open
gentlementlegen opened this issue Jan 8, 2025 · 10 comments
Open

Logs #20

gentlementlegen opened this issue Jan 8, 2025 · 10 comments

Comments

@gentlementlegen
Copy link
Contributor

logs

@gentlementlegen
Copy link
Contributor Author

Tip

ok

@gentlementlegen
Copy link
Contributor Author

Caution

error

@gentlementlegen
Copy link
Contributor Author

Note

info

@gentlementlegen
Copy link
Contributor Author

Warning

warn

@gentlementlegen
Copy link
Contributor Author

Important

debug

@gentlementlegen
Copy link
Contributor Author

Caution

fatal

{
  "message": "fatal",
  "stack": [
    "Error: fatal",
    "    at <anonymous> (/Users/mentlegen/WebstormProjects/conversation-rewards/src/web/api/index.ts:24:47)"
  ],
  "caller": "<anonymous>"
}

@gentlementlegen
Copy link
Contributor Author

Note

verbose

@0x4007
Copy link
Contributor

0x4007 commented Jan 8, 2025

[!TIP]
ok

> <!-- UbiquityOS - http://localhost - <anonymous> - undefined - @ubiquity-os
> {
>   "caller": "&lt;anonymous&gt;"
> }
> -->
> 


I wish we could automatically handle anonymous functions in a better way! But I suppose that would be the responsibility of the plugin developer. In our template lint settings I suppose that most functions should be named too.

@gentlementlegen
Copy link
Contributor Author

@0x4007 I ran this as a one liner in my IDE for testing which is why it is displayed with no stack (there was literally none)

@0x4007
Copy link
Contributor

0x4007 commented Jan 8, 2025

Caution

serverError

{
  "message": "serverError",
  "stack": [
    "Error: serverError",
    "    at &lt;anonymous&gt; (/Users/mentlegen/WebstormProjects/conversation-rewards/src/web/api/index.ts:24:47)"
  ],
  "caller": "&lt;anonymous&gt;"
}

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

No branches or pull requests

2 participants