1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-07-12 00:01:17 +00:00
Commit graph

6 commits

Author SHA1 Message Date
Alex Bramley
588a3168ac More logging yak-shaving:
* Change Mock API to match mockNetConn Expect* calls.
* Make logging.NewMock take and store *testing.T.
* Add a level-agnostic Expect().
* Make writerMap an externally accessible type.
* Adjust tests to take this shaving into account.
2011-11-05 05:56:45 +00:00
Alex Bramley
97783df463 Make mock loggers log everything to avoid stupids. 2011-10-27 18:28:43 +01:00
Alex Bramley
dee808a263 Move logger mocks to a non-test file so they can be used elsewhere. 2011-10-22 16:15:46 +01:00
Alex Bramley
2467e5cc93 More tests for the logging package. 2011-10-22 15:43:13 +01:00
Alex Bramley
c769723596 Rewrite logging package for great justice.
Allowing people to use the static functions to log things makes testing
hard, so I've removed them. I've also rewritten things to allow logging
different levels to separate files.
2011-10-22 12:06:18 +01:00
Alex Bramley
d07471b93a Simpleish level-based logging library and the start of some tests. 2011-09-28 23:47:30 +01:00