Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ethlog: fix typo in documentation | Felix Lange | 2014-10-17 | 1 | -1/+1 |
| | |||||
* | ethlog: fix concurrency | Felix Lange | 2014-10-17 | 1 | -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 interface | Felix Lange | 2014-10-17 | 2 | -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 message | Felix Lange | 2014-10-17 | 1 | -2/+2 |
| | | | | This test fails because the log message is formatted twice. | ||||
* | ethlog: use Godoc for code examples in documentation | Felix Lange | 2014-10-17 | 2 | -28/+29 |
| | | | | This ensures that examples will actually compile. | ||||
* | ethlog: add Godoc documentation, remove README | Felix Lange | 2014-10-17 | 2 | -79/+70 |
| | |||||
* | ethlog: verify that Flush is blocking in TestLoggerFlush | Felix Lange | 2014-10-17 | 1 | -6/+24 |
| | |||||
* | ethlog: don't buffer output in TestConcurrentAddSystem | Felix Lange | 2014-10-17 | 1 | -1/+1 |
| | |||||
* | ethlog: improve TestLogSystem | Felix Lange | 2014-10-17 | 1 | -27/+38 |
| | | | | | It's now safe for concurrent access. Output checking looks better. | ||||
* | ethlog: fix StdLogSystem data race on level | Felix Lange | 2014-10-17 | 1 | -4/+5 |
| | |||||
* | ethlog: add test that adds log systems concurrently | Felix Lange | 2014-10-17 | 1 | -0/+29 |
| | |||||
* | ethlog: Reset before each test | Felix Lange | 2014-10-17 | 1 | -4/+12 |
| | |||||
* | ethlog: fix test compilation error | Felix Lange | 2014-10-17 | 1 | -1/+0 |
| | |||||
* | ethlog: improve dispatch concurrency | Felix Lange | 2014-10-17 | 1 | -54/+57 |
| | | | | This also fixes a deadlock in the tests. | ||||
* | merge upstream | zelig | 2014-07-21 | 1 | -1/+1 |
|\ | |||||
| * | Fixed miner and logger | obscuren | 2014-07-18 | 1 | -1/+1 |
| | | |||||
* | | fix send overwritten by merge | zelig | 2014-07-15 | 1 | -2/+2 |
| | | |||||
* | | merge upstream | zelig | 2014-07-15 | 2 | -12/+12 |
|\| | |||||
| * | Fix quit | obscuren | 2014-07-07 | 1 | -1/+1 |
| | | |||||
| * | Revert "ethreact - Feature/ethutil refactor" | Jeffrey Wilcke | 2014-07-07 | 2 | -50/+30 |
| | | |||||
* | | fix logger channel blocking | zelig | 2014-07-15 | 2 | -27/+43 |
|/ | |||||
* | logger fix | zelig | 2014-07-06 | 2 | -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 looping | obscuren | 2014-07-05 | 1 | -6/+14 |
| | |||||
* | go fmt | zelig | 2014-06-27 | 2 | -179/+173 |
| | |||||
* | update doc: list levels and show usage of named print methods | zelig | 2014-06-25 | 1 | -0/+4 |
| | |||||
* | implement DebugDetail loglevel and named print methods | zelig | 2014-06-25 | 1 | -0/+9 |
| | |||||
* | refactor logging. Details: | zelig | 2014-06-23 | 3 | -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 |