Ruby port from Log::Minimal