Is there a way to instantiate the Parse Logger outside of the context of the Parse Server?

Hi all,

I have an Express route parallel to Parse Server in my backend and I would like to retrieve the Parse Logger so that I can use it in my Express route. So is there a way to recover this Logger and use it in my route ?

Thank you.

Something like this should do what you need:

import logger from 'parse-server/lib/logger';
logger.warn('some warning');

Thank you ! That works like a charm !

Howerver i’m a little ashamed … :relaxed: I thought it was more complicated than that… Thanks again !

No problem at all :slight_smile: