How to configure and use Serilog in ASP.NET Core 6?

You’ll need to make sure you have the following packages installed: Serilog Serilog.Extensions.Hosting (this provides the .UseSerilog extension method. If you have the Serilog.AspNetCore package, you do not need to explicitly include this) Then you’ll need a using: using Serilog; Which should allow you to access .UseSerilog via builder.Host: using Serilog; var builder = WebApplication.CreateBuilder(args); … Read more

How to report console.error with Sentry?

As user @kumar303 mentioned in his comment to the question … you can use the JS console integration Sentry.Integrations.CaptureConsole. See https://docs.sentry.io/platforms/javascript/configuration/integrations/plugin/#captureconsole for documentation. At the end you JS code to setup Sentry looks as follows: import * as Sentry from ‘@sentry/browser’; import { CaptureConsole } from ‘@sentry/integrations’; Sentry.init({ dsn: ‘https://your-sentry-server-dsn’, integrations: [ new CaptureConsole({ levels: … Read more

Javascript “TypeError: cancelled” error when calling “fetch” on iOS

Frustrating right? Recently our team encountered this same error. Here is what was happening in our case. When the page loads, the refresh button changes to cross button, now if some api request is in progress during this page loading time and the user click this cross button, then iOS chrome/safari throws this error. For … Read more

Source maps files in production – Is it safe? [closed]

Searching for a possible solution to this, and if someone is not specifically using Sentry, I got to this blog post (ironically a Sentry blog post): https://blog.sentry.io/2015/10/29/debuggable-javascript-with-source-maps.html Where there is an interesting idea: “private source maps”. It implies generating the source maps in someplace that is not accessible from the internet (such as your company … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)