Get up and running with Hamsterlog in just a few minutes. This guide will walk you through creating an account, getting your API key, and sending your first logs.
Start by creating a free account:
Every account starts with a 7 day free trial. This allows you to play around with Hamsterlog and see if it's a good fit for your needs.
Once you're logged into your dashboard:
Download the hamster-file (some would would call it a 'library' or 'SDK', but it's really just one tiny file 🐹) and follow the instructions for your preferred language or runtime:
A 'source' could be an app, a website, a microservice, Docker-container, anything you want really. Your account can have multiple sources in your account. Each source has its own API key. Manage them in Dashboard > Settings > Sources.
Tags are labels you can attach to logs to categorize and filter them. Tags are optional, and can be any string you want. Examples:
["error", "payment"]
for payment-related errors["info", "user-signup"]
for user registration events
["debug", "database"]
for database debuggingHamsterlog by default supports three main log levels:
Here's a quick example of what your code will look like (using Node.js):
import { Hamster } from "./hamster-node.js";
// Initialize
const hamster = new Hamster({
apiKey: "your-api-key-here",
defaultTags: ["my-app"],
});
// Send your first log!
hamster.log("Hello, Hamsterlog!", ["greeting"]);
By default, Hamsterlog (for Node.js, Deno and Bun) will automatically send all your
existing
console.log/warn/error/info/debug
calls to Hamsterlog without
you having to change your code!
If you want to disable this, you can set captureConsole: false
when initializing Hamsterlog.
Once you've sent your first logs:
If you run into any issues, check our Troubleshooting guide.