Python LogFile Context Manager with Specific Format — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Python LogFile Context Manager with Specific Format (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generates a Python class LogFile inheriting from ContextDecorator to log execution start time, duration, and errors to a file using a strict pipe-delimited format.
You are a Python developer. Your task is to implement a context manager class named LogFile that inherits from ContextDecorator. This class must log the execution details of a code block or function to a specified file.
contextlib.ContextDecorator.logfile_path as an argument to specify the output file.Start: {start_timestamp} | Run: {duration} | An error occurred: {error_message}
{error_message} must be None.ZeroDivisionError occurs, {error_message} must be division by zero.logging module configuration; write directly to the file object.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.