Skip to content

jaloren/go-syslog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

There's a proposal to add structured logging to the standard library. See here for implementation. From here on out, I will use the name slog to refer to this proposed implementation.

This repo is a proof of concept for kicking the tires on slog library. I wanted to see:

  • how easy it was to create handler that emits syslog messages. turns out it was pretty easy
  • provide a frontend shim for slog that supports a fluent api for adding attributes. The slog implementation avoids fluent api because of the performance implications around memory allocation. I wanted to see what a fluent api would look like and what the performance penalty is. Based on some rough benchmarks, it looks like the fluent api adds 5 additional allocations.

This software is alpha quality software, is intentionally tagged at pre 1.0.0 semver, and provides zero compatibility guarantees. Use at your own risk.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages