Creates a logger for the passed component name.
import { logger } from '@libp2p/logger'const log = logger('my-component')log.info('hello world')// logs "my-component hello world" Copy
import { logger } from '@libp2p/logger'const log = logger('my-component')log.info('hello world')// logs "my-component hello world"
Creates a logger for the passed component name.