-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
TypeError: morgan.token is not a function #3
Comments
Sorry for late response, I have a hard time working on open source lately, I am trying... I fixed this issue with v1.0.6 version of mongoose-morgan. Please try by updating version of your package.json mongoose-morgan dependency. How will this work:
|
I am experiencing this problem in version 1.0.8 |
I just tested this with v1.0.8 and I couldn't reproduce the problem, can you post here the code sample which reproduced the problem for you? |
app.use(morgan(':method :url :status :res[content-length] - :response-time ms')) just use this as the middleware. please let me know if this is helpful to you |
I am trying to add token to morgan logs.
However, I am getting following error :
morgan.token("conversation-id", function getConversationId(req) {
^
TypeError: morgan.token is not a function
Kindly guide
The text was updated successfully, but these errors were encountered: