Skip to content

Guidance on logging in Remix #3515

Closed Answered by sergiodxa
brightpixels asked this question in Q&A
Discussion options

You must be logged in to vote

I would create the logger instance with Winston in a logger.server.ts file, then import and use it inside my loader and action functions.

You could also setup Winston on your server code, the configuration, and if it's possible, will change depending on the adapter you choose.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@sergiodxa
Comment options

@dan-cooke
Comment options

Comment options

You must be logged in to vote
5 replies
@dan-cooke
Comment options

@sergiodxa
Comment options

@dan-cooke
Comment options

@imballinst
Comment options

@tometo-dev
Comment options

Answer selected by machour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants