Invictum / serenity-reportportal-integration

Serenity TAF integration with Report Portal
Apache License 2.0
20 stars 19 forks source link

How to emit Log manually? #148

Open ntthaibk opened 2 years ago

ntthaibk commented 2 years ago

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

Invictum commented 2 years ago

@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.

ntthaibk commented 2 years ago

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?

grey-rain commented 10 months ago

@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.