松弛的附件宽度和包装问题 [英] Slack Attachment Width and Wrapping Issues

查看:48
本文介绍了松弛的附件宽度和包装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用松弛附件记录应用程序错误,但是像堆栈跟踪之类的大字段却表现异常.

I'm trying to use slack attachments to log application errors but the large fields like the stack trace are behaving weirdly.

首先,当使用附件时,表格似乎固定为某个任意宽度,是否有必要进行更改以允许更大的值?否则,松弛窗口的50%以上为空白,这完全是浪费.

First, when using attachments the table seems to be fixed to some arbitrary width, is there anyway to change this so a wider value can be allowed? Otherwise 50+% of the slack window is blank, a complete waste.

仅使用文本即可正常工作,但还包括许多其他较小的字段,这些字段都受益于字段格式.

Using just text works fine, but there are a number of other smaller fields included that benefit from the field format.

此外,当消息很大时,我也会出现松弛问题,无法进行奇怪的包装.下面只是一小段代码,其中有几个字符掉了,但是在整个堆栈上可能会损失很多.

Also I'm having a problem with slack doing strange wrapping when the message is large. Below is just a small snippet with a few characters falling off, but on the full stack there can be substantial loss.

在字符串中添加一个字符,现在它开始切掉所有内容(文本在那里并且可以选择,它在包装时做得很糟糕.)

Adding a single character to the string and now it starts chopping things off (the text is all there and selectable, it's just doing a terrible job at wrapping.)

任何人有任何建议以获得更有用的东西吗?

Anyone have any suggestions to get something even slightly more useful?

推荐答案

我建议将应用程序错误上传为文本文件(纯文本摘录),而不是将信息放入消息中.这样一来,您可以发布更多数据,并且格式也更适合此类数据.

I would suggest to upload the application errors as text file (Plain Text Snippet) instead putting the info into a message. That way you can post more data and the formatting is also better suited for this kind of data.

您可以在频道中自动共享上传的文件,该文件将显示为新消息.如果您想传达更多信息,还可以在is中添加评论.

You can auto-share your uploaded file in a channel and it will appear as new message. You can also add comments to is if you want to convey more information.

使用 files.upload 方法将错误文本作为文件上传到filetype设置为text可获得文本片段.

Use the files.upload method to upload your error text as file with the filetype set to text to get a text snippet.

这是一个示例,其中一个应用程序按如下所述发布新的文本片段时,它在Slack上的外观如何:

Here is an example how it looks like on Slack, when an app posts a new text snippet as described:

这篇关于松弛的附件宽度和包装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆