Multiline Workflow logs

There are workflow commands to produce log entries that will be then presented as parts of the PR view. However I do not see any option how to mark multiple lines to be marked as a single log message. This can be useful for logging failed tests with whole stack trace and failure description in place. I see that there is ::group:: command, but I do not see how it can be used together with ::notice::, ::warning::, or ::error:: commands. Is there such functionality available?