aboutsummaryrefslogtreecommitdiffstats
path: root/ethlog/loggers_test.go
Commit message (Collapse)AuthorAgeFilesLines
* ethlog => loggerobscuren2014-10-311-174/+0
|
* ethlog: simplify LogSystem interfaceFelix Lange2014-10-171-16/+4
| | | | | | | | | 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: 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: 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
|
* merge upstreamzelig2014-07-151-7/+5
|\
| * Revert "ethreact - Feature/ethutil refactor"Jeffrey Wilcke2014-07-071-11/+12
| |
* | fix logger channel blockingzelig2014-07-151-0/+15
|/
* logger fixzelig2014-07-061-12/+11
| | | | | | | | | | - 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
* go fmtzelig2014-06-271-78/+72
|
* refactor logging. Details:zelig2014-06-231-0/+115
- 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