log_first_n#
- scikitplot.logging.log_first_n(level, msg, n, *args, **kwargs)[source]#
Log only for the first n calls from the same call site.
Log ‘msg % args’ at level ‘level’ only first ‘n’ times.
Not threadsafe.
- Parameters:
- levelint or str
Logging level.
- msgstr
Message template.
- nint
Number of initial calls to emit. Must be >= 1.
- *argsAny
Message formatting args.
- **kwargsAny
Passed to the underlying logger.
- Raises:
- ValueError
If
n < 1.
- Parameters:
- Return type:
None