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

Added debug/logging feature #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DeBuXer
Copy link
Contributor

@DeBuXer DeBuXer commented Oct 31, 2024

With this option, you can enable logging/debugging, which will be written to the console.log(). This can be useful if a redirect isn't working correctly, as it allows you to better see what's happening within the application. By default, this function is disabled.

There are 3 debug levels, where level 1 provides the least information and level 3 provides the most.

Example output:

[2024-10-31 15:32:46] Received HTTP request for test.domain.tld
[2024-10-31 15:32:46] findTxtRecord for test.domain.tld: forward-domain=https://www.example.com
[2024-10-31 15:32:46] No cache found for test.domain.tld, storing new data

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