errorcore
Transport

File

File transport is useful in local development, controlled staging environments, or systems where another agent is responsible for reading packages from disk.

transport.file
errorcore.init({
  transport: {
    type: "file",
    path: ".errorcore/incidents",
  },
});

Keep the target directory writable and monitored. Local files solve delivery decoupling, not retention by themselves.

On this page