Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to emit Log manually? #148

Open
ntthaibk opened this issue May 31, 2022 · 3 comments
Open

How to emit Log manually? #148

ntthaibk opened this issue May 31, 2022 · 3 comments
Labels

Comments

@ntthaibk
Copy link

ntthaibk commented May 31, 2022

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
Copy link
Owner

@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
Copy link
Author

ntthaibk commented Jun 3, 2022

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants