aboutsummaryrefslogtreecommitdiffstats
path: root/ethlog/loggers.go
Commit message (Collapse)AuthorAgeFilesLines
* ethlog: fix typo in documentationFelix Lange2014-10-171-1/+1
|
* ethlog: fix concurrencyFelix Lange2014-10-171-38/+60
| | | | | | | | | Rather than spawning a new goroutine for each message, run each log system in a dedicated goroutine. Ensure that logging is still asynchronous by using a per-system buffer (currently 500 messages). If it overflows all logging will hang, but that's better than spawning indefinitely many goroutines.
* ethlog: simplify LogSystem interfaceFelix Lange2014-10-171-44/+13
| | | | | | | | | Messages are formatted by generic part, so the log system doesn't need to provide formatting. This fixes the test from the previous commit. As a small bonus, log systems now have access to the level of the message. This could be used to provide colored logging in the future.
* ethlog: use Godoc for code examples in documentationFelix Lange2014-10-171-28/+8
| | | | This ensures that examples will actually compile.
* ethlog: add Godoc documentation, remove READMEFelix Lange2014-10-171-17/+70
|
* ethlog: fix StdLogSystem data race on levelFelix Lange2014-10-171-4/+5
|
* ethlog: improve dispatch concurrencyFelix Lange2014-10-171-54/+57
| | | | This also fixes a deadlock in the tests.
* merge upstreamzelig2014-07-211-1/+1
|\
| * Fixed miner and loggerobscuren2014-07-181-1/+1
| |
* | fix send overwritten by mergezelig2014-07-151-2/+2
| |
* | merge upstreamzelig2014-07-151-5/+7
|\|
| * Fix quitobscuren2014-07-071-1/+1
| |
| * Revert "ethreact - Feature/ethutil refactor"Jeffrey Wilcke2014-07-071-39/+18
| |
* | fix logger channel blockingzelig2014-07-151-27/+28
|/
* logger fixzelig2014-07-061-18/+39
| | | | | | | | | | - introduce quit, drained, shutdown channels - mainLoop falls through reading message channel to drained state, and waits is blocked in default branch until any message is sent - Flush() waits for <-drained - Stop() pushes quit and nodges mainloop out of blocking drained state - package-global mutex - Reset() - clear tests
* Fixed crazy loopingobscuren2014-07-051-6/+14
|
* go fmtzelig2014-06-271-101/+101
|
* implement DebugDetail loglevel and named print methodszelig2014-06-251-0/+9
|
* refactor logging. Details:zelig2014-06-231-0/+179
- packages use tagged logger sending log messages to shared (process-wide) logging engine - log writers (interface ethlog.LogSystem) can be added to the logging engine by wrappers/guis/clients - shared logging engine dispatching to multiple log systems - log level can be set separately per log system - async logging thread: logging IO does not block main thread - log messages are synchronously stringified to avoid incorrectly logging of changed states - README.md - loggers_test