Closed tobiasdiez closed 1 year ago
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)
Describe the feature
Add a new method that accepts the message and the log level as arguments.
Additional information