aboutsummaryrefslogtreecommitdiffstats
path: root/ethlog
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-172-60/+17
| | | | | | | | | 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: add test for '%' in log messageFelix Lange2014-10-171-2/+2
| | | | This test fails because the log message is formatted twice.
* ethlog: use Godoc for code examples in documentationFelix Lange2014-10-172-28/+29
| | | | This ensures that examples will actually compile.
* ethlog: add Godoc documentation, remove READMEFelix Lange2014-10-172-79/+70
|
* ethlog: verify that Flush is blocking in TestLoggerFlushFelix Lange2014-10-171-6/+24
|
* ethlog: don't buffer output in TestConcurrentAddSystemFelix Lange2014-10-171-1/+1
|
* ethlog: improve TestLogSystemFelix Lange2014-10-171-27/+38
| | | | | It's now safe for concurrent access. Output checking looks better.
* ethlog: fix StdLogSystem data race on levelFelix Lange2014-10-171-4/+5
|
* ethlog: add test that adds log systems concurrentlyFelix Lange2014-10-171-0/+29
|
* ethlog: Reset before each testFelix Lange2014-10-171-4/+12
|
* ethlog: fix test compilation errorFelix Lange2014-10-171-1/+0
|
* 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-152-12/+12
|\|
| * Fix quitobscuren2014-07-071-1/+1
| |
| * Revert "ethreact - Feature/ethutil refactor"Jeffrey Wilcke2014-07-072-50/+30
| |
* | fix logger channel blockingzelig2014-07-152-27/+43
|/
* logger fixzelig2014-07-062-30/+50
| | | | | | | | | | - 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-272-179/+173
|
* update doc: list levels and show usage of named print methodszelig2014-06-251-0/+4
|
* implement DebugDetail loglevel and named print methodszelig2014-06-251-0/+9
|
* refactor logging. Details:zelig2014-06-233-0/+352
- 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