Skip to content

whytheplatypus/flushable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flushable GoDoc Report card Sourcegraph

Package flushable provides a way to write to many http connections.

Motivated by a desire to passivly observe a programs logs.

Of course it could be used for other things too.

Typcally, observing logs requires significant effort. Small simple projects require observability but the overhead of integrating with the usual tools is disproportionate and the tool itself is usually overkill.

Often the two systems need to have prior knowledge of eachother, or at least the developer does.

Inspired by net/http/pprof/

import _ "github.com/whytheplatypus/flushable/log

Installs handlers for /debug/log that send log messages while the connection is open. e.g.

curl example.test/debug/log

Will show any logs created until the command is exited.

Releases

No releases published

Packages

No packages published

Languages