General purpose log method
tobiasdiez opened this issue · comments
Tobias Diez commented
Describe the feature
Add a new method that accepts the message and the log level as arguments.
Additional information
- Would you be willing to help implement this feature?
Inesh Bose commented
I have a similar implementation in one of my projects:
import consola, { type logType } from 'consola'
export const useConsola = (
type: Exclude<logType, 'silent' | 'verbose'>,
message: any,
...args: any[]
) => consola[type](message, ...args)