serenity-reportportal-integration icon indicating copy to clipboard operation
serenity-reportportal-integration copied to clipboard

How to emit Log manually?

Open ntthaibk opened this issue 2 years ago • 3 comments

Hi, I'm configuring the Log Preset to send as much logs as possible to RP. But can't find anyway to send the information from Logger (INFO,WARN,...) onto RP as well, could you please help me how to parse the log and send it to RP

Thanks

ntthaibk avatar May 31 '22 07:05 ntthaibk

@ntthaibk You can try to use one of the loggers option provided by RP. Exact module depends on underlying logging system you are using in your project.

Invictum avatar May 31 '22 12:05 Invictum

I think serenity is using Log back, but I've appended it to logback.xml but there's nothing posted to RP :(

btw, I've try to call ReportPortal.emitLog directly, but still can't emit that log to RP, do I need to create Log Preset Unit for the emit as well?

ntthaibk avatar Jun 03 '22 06:06 ntthaibk

@ntthaibk in current integration implementation it does not seem to be possible. maybe (I am not sure yet) it will be possible when new architecture is implemented.

grey-rain avatar Oct 22 '23 20:10 grey-rain