debug
The debug method logs debug messages to the terminal using console.debug with an automatic magenta color applied to all string arguments. Non-string arguments are passed through unchanged.
Signature
betterConsole.debug(...args: any[]): void
Parameters
...args: One or more values to log. String arguments are automatically styled with magenta color.
Usage
import betterConsole from "ts-better-console";
// Log a debug message (displayed in magenta)
betterConsole.debug("Processing request #1234");
// Log multiple arguments
betterConsole.debug("Cache hit for key:", "user_123");
// Mix string and non-string arguments
betterConsole.debug("Elapsed time (ms):", 150);
Want to support this project?
If you find ts-better-console useful and want to support its development, consider starring the GitHub repository or buying me a coffee! Your support helps me dedicate more time to improving the library and adding new features.
Want to contribute to this project?
Contributions are welcome! If you're interested in improving the library, fixing bugs, or adding new features, feel free to check out the GitHub repository and submit a pull request. Whether you're a seasoned developer or new to open source, your contributions can make a difference!