public function logMessage($type, $message, $method = null, $line = null)
    {
        if (is_array($message) || is_object($message)) {
            $message = \SwaggerValidator\Common\Collection::jsonEncode($message);
        }

        print "[" . date('Y-m-d H:i:s') . "][{$type}][{{$method}#{$line}] - {$message} \n";
        //file_put_contents('php://stdout', "[" . date('Y-m-d H:i:s') . "][DEBUG][{{$method}#{$line}] - {$message} \n");
    }