Quickstart and Concepts
Gettin' Going
Getting started with FlexLogs is easy:
- Create your project in FlexLogs
- Send your logs to FlexLogs with your project's shiny new API key (or use Healthchecks without any logging)
- Set up your first metric, message, or watchdog (see below)
Sending your logs to FlexLogs
To get started, you'll need to send your logs to FlexLogs.
We've got a few different methods for this depending on your setup.
Check out the
Integration
section for more information.
Magic tags
Most FlexLogs features (except Healthchecks ) use magic tags (it's really just json5 , but "magic tags" sounded cool) to function.
Basic Anatomy of Magic Tags
// Using a magic tag in your logs to create a metric
logger.info("flexlogs{metric: 'my-metric'}")
// Let's break it down:
logger.info( // we want to log it out of our server
"flexlogs{ // denote that it's for FlexLogs
metric: 'my-metric' // the metric we want to create
}" // close the tag and string
This is a pretty simple example, but hopefully you get the idea. By using your logs you don't need to setup any agents to relay the data back to FlexLogs. It's all done through your logs. Sprinkle these magic tags into your application and you're going to like the way your events look, I guarantee it.