-
Notifications
You must be signed in to change notification settings - Fork 9
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: this.logFn is not a function #275
Comments
were you able to solve it @andresespinosapc ? 👀 I am facing the same issue in an express setup with typescript. Each time I hit an endpoint I get that noisy error |
me too! hit that same error.
my installation |
Happens here also? Any ideas? |
Hello, do we have any news on this? |
The way to fix this is by implementing that function when initializing scout as explained in https://github.com/scoutapp/scout_apm_node/blob/master/docs/integrations/express.md Example code: await scout.install({
monitor: true,
name: "<your name>",
key: "<key>",
}, {
logFn: (message, level) => {
console.log(message, level)
}
}).then(() => {
console.log("scout initialized");
}) With the code above it produces the output for scout logs
|
I'm getting the error
TypeError: this.logFn is not a function
. I think it's because of this line:scout_apm_node/lib/scout/index.ts
Line 758 in a1894e4
The text was updated successfully, but these errors were encountered: