Reportportal: How to send screenshot to report portal using serilog

Created on 12 Apr 2019  路  4Comments  路  Source: reportportal/reportportal

I am using serilog to post logs to report portal. What i need is to send the screenshot as well with the logs.
I have searched it but could'nt find any solution. Please help.

help wanted

Most helpful comment

Put you message in special format. List of available formatters is here.

Example:

var screenshotBase64 = Convert.ToBase64String(yourscreenshot);
logger.Information("my super message {rp#base64#image/png#" + screenshotBase64 + "}");

All 4 comments

Is it already resolved? Please share how.

@nvborisenko No, its still unresolved.

Put you message in special format. List of available formatters is here.

Example:

var screenshotBase64 = Convert.ToBase64String(yourscreenshot);
logger.Information("my super message {rp#base64#image/png#" + screenshotBase64 + "}");

@nvborisenko It worked. Thank you. :)

Was this page helpful?
0 / 5 - 0 ratings