A zink for logging to humio
using zerilog
To get started with @zerilog/humiozink, install the package using npm:
npm install zerilog @zerilog/humiozink
pnpm add zerilog @zerilog/humiozink
yarn add zerilog @zerilog/humiozink
Here's a quick example to get you started:
import { LoggerConfiguration } from 'zerilog'
import HumioZink from '@zerilog/humiozink'
const logger = new LoggerConfiguration()
.writeTo.sink(new HumioZink({
ingestToken: "YOUR_INGEST_TOKEN"
}))
.createLogger();
logger.information("Hello World");