Task: Implement Ruby Logger with Tee Functionality (Output to Both STDOUT and File)
Task: Implement Ruby Logger with Tee Functionality (Output to Both STDOUT and File): a task in Terminal-Lego-15k (Harbor dataset). In Ruby, the built-in Logger class can log to a single output destination (e.g., a file or STDOUT). Your task is to create a Ruby solution that enables a Logger…
The task
In Ruby, the built-in `Logger` class can log to a single output destination (e.g., a file or STDOUT). Your task is to create a Ruby solution that enables a `Logger` instance to write log output to **both STDOUT and a file simultaneously**, similar to the Unix `tee` command.
Part of PrimeIntellect/Terminal-Lego-15k.