Commit Graph

11 Commits

Author SHA1 Message Date
re 22f067d83b fix repos 2022-12-21 15:59:06 +03:00
Albert Salim 99bc300c8d Add a method Exit on Logger that calls `os.Exit` or alternate exit function.
This keeps backward compatibility for static declaration of logger
that does not specify `ExitFunc` field.
2018-10-10 21:54:15 +08:00
Albert Salim 2be620216a Add option to panic in `test.NewNullLogger` to allow testing of
calls to `Fatal*`

See #813
2018-10-06 18:08:19 +08:00
David Bariod 6999e59e73 properly fix the hooks race test 2018-07-20 13:16:19 +02:00
David Bariod 8369e2f077 Fix a race condition in TestLoggingWithHooksRace 2018-05-12 15:52:19 +02:00
Jay Ching Lim be569094e9
Make fireHooks() method receive a copy of Entry structure to avoid race conditions
Signed-off-by: Jay Ching Lim <imjching@users.noreply.github.com>
2018-02-12 17:26:48 -05:00
Tomas Doran 0afea37159 Update due to rename of github account 2017-05-19 13:00:16 +01:00
Simon Eskildsen 26809363aa Revert "Merge pull request #384 from mnzt/master"
This reverts commit 42b84f9ec6, reversing
changes made to cf60a8c5d5.
2016-12-01 18:53:16 -05:00
Toby a5dbcc756c
Renaming 'Sirupsen' to 'sirupsen' 2016-07-18 16:36:46 +01:00
Joern Barthel 0143a90f6e Extended test. 2016-02-22 10:46:52 +01:00
Joern Barthel be4b44b806 Added test hook. 2016-02-22 10:46:52 +01:00