percolate / foam

A library to quickly and easily enable multiple monitoring & support platforms for your mobile apps
BSD 3-Clause "New" or "Revised" License
65 stars 8 forks source link

How to send Custom Log Information to Papertrail #13

Open osayilgan opened 8 years ago

osayilgan commented 8 years ago

Hi,

This is not really an issue but couldn't find it in your ReadMe File. I want to send some of Logs to Papertrail, but as far as I could see in your documentation, once I set it up, it will log everything to Papertrail.

What I want to do is more like sending a Log Message to Papertrail if I really need to. I don't need Crashes, Exceptions etc. Just custom log messages.

is there any way to do it?

Thanks.

brentwatson commented 8 years ago

Only errors (Log.e) will go to any setup logging providers. So you could call Log.e from your own Papertrail.log (or the like) for clarity. If you have other error logs there is no way to filter them from sending, but you could prefix the Papertrail.log ones with something like "MYAPP: " and then setup a filter for them in papertrail.