José Valim
b93912b9dc
Deprecate monitor option in GenEvent
2014-09-05 13:20:40 +02:00
James Fish
681d5aa9c4
Fix logger dialyzer warnings
2014-09-03 19:20:09 +01:00
James Fish
6304919d0d
Update Logger mode after configuration
...
Compute mode after configure as possible mode should change.
2014-08-31 17:04:23 +01:00
James Fish
d2d27e96e5
Fix Logger.log/2 not to raise on Logger exit
2014-08-31 16:40:57 +01:00
José Valim
abd2b35738
Get rid of Logger timeout config, closes #2724
2014-08-29 08:01:03 -04:00
José Valim
1ca451f779
Normalize is_guard checks
2014-08-27 15:28:31 -04:00
José Valim
2d90d8ac60
Remove code duplication on watcher
2014-08-23 14:38:28 -04:00
José Valim
a8b2cb99ee
Use to_string when possible on Logger.log
2014-08-23 14:34:51 -04:00
José Valim
68274311fb
Merge pull request #2712 from fishcakez/logger_rc
...
Fix logger watcher race condition
2014-08-23 14:34:05 -04:00
José Valim
d45f451943
Allow configurable timeout and catch exits on logger
2014-08-23 14:09:11 -04:00
James Fish
c0a075724f
Fix logger watcher race condition
...
Previously a backend could be removed from logger and the watcher would
not have exited before the remove_backend/1 call returned. This meant
that a new watcher could not always be started because the child
(watcher) might still exist but be about to die.
2014-08-23 18:59:13 +01:00
José Valim
f1a39375c9
Do not crash the caller when Logger is not available
...
Instead, return :ok | {:error, :not_available} and leave it up
to the caller to decide.
2014-08-23 13:43:58 -04:00
José Valim
f1aa2f01c7
Merge pull request #2695 from elixir-lang/jv-ge
...
GenEvent++
2014-08-18 16:33:11 -04:00
José Valim
592300a0f0
Ensure Logger watcher monitors event manager
2014-08-18 09:18:28 -04:00
José Valim
a0be9fe272
Improve Logger formatter defaults
...
* Make colors in the docs consistent with the ones in the code
* Add new lines before and after each message
2014-08-15 18:30:30 +02:00
José Valim
1fd5a2a38e
Use monitored handlers instead of linked ones
2014-08-15 18:02:47 +02:00
José Valim
9420945f59
Leave it to the application to start Logger after compilation
...
Closes #2649
2014-08-09 13:38:27 +02:00
James Fish
2c009d1ec3
Improve translator formatting
...
* Improve application stop reasons
* Include stacktrace in crash reports
2014-08-08 21:08:36 +01:00
John Warwick
b98421fe51
Fixed Logger.configure_backend spec
2014-08-08 10:11:39 -04:00
José Valim
6c8e70b1f8
Load handlers inside supervisor as they are now dynamic
2014-08-08 13:21:55 +02:00
José Valim
56ea6e52e4
Update configure_backend docs
2014-08-08 11:39:10 +02:00
José Valim
4726e0af91
Persist calls to add_backend and remove_backend
2014-08-08 11:38:18 +02:00
Tom Kadwill
aedd5a938f
Added @doc false to handle_info function
2014-08-08 10:21:26 +01:00
José Valim
bc2cb15a96
Add Logger.flush/0
2014-08-07 20:14:04 +02:00
José Valim
dbf205b311
Deprecate Module.function/3
2014-08-07 20:00:57 +02:00
John Warwick
d8428ba1e6
Fixing typos in Logger module docs
2014-08-07 10:11:36 -04:00
James Fish
38f895cc13
Improve Logger's SASL report translation
...
* Pattern match keyword lists for faster parsing
* Support :supervisor_bridge reports
* Support missing :initial_call in :crash_report
* Improve formatting of registered name in :crash_report output
* More tests
2014-08-06 21:21:36 +01:00
José Valim
f8647dae3e
Ensure backends receive the id when added, closes #2635
2014-08-06 19:56:22 +02:00
José Valim
67caa3ebb3
Fix padding in Logger
2014-08-06 13:20:01 +02:00
James Fish
413b815ecc
Add tests for SASL report logging
2014-08-06 09:47:17 +01:00
James Fish
df89b5022e
Add SASL log forwarding option to Logger
2014-08-05 21:22:50 +01:00
José Valim
214d056911
Support on log messages
2014-08-04 20:38:13 +02:00
pragdave
9f065a77ca
align the messages between log messages with different length level text. Added an extra format $levelpad, which is a space if the level is "warn" or "info"
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2014-08-04 20:32:43 +02:00
José Valim
ec6c98ef47
Merge Logger.metadata
2014-08-04 19:03:24 +02:00
José Valim
b9000999c9
Use the Logger PID to avoid race conditions on shutdown, closes #2628
2014-08-04 15:21:06 +02:00
José Valim
58ca3401e4
Deprecate IO.ANSI.terminal? and tidy up colors
2014-07-31 13:54:08 +02:00
José Valim
a5926616a6
Ensure log configuration triggers a restart
2014-07-31 12:59:34 +02:00
José Valim
59910ae4bf
Add flush to Logger.add_backend/2
2014-07-31 12:43:11 +02:00
José Valim
69b47483c1
Merge pull request #2609 from fishcakez/logger_ansi_console
...
Add ANSI support to console logger
2014-07-31 12:43:06 +02:00
José Valim
284e75d031
Remove warnings from the test suite
2014-07-31 10:46:29 +02:00
James Fish
212b204af8
Add ANSI support to console logger
2014-07-31 00:06:31 +01:00
José Valim
90f83e1b3d
Improve docs for Logger
2014-07-30 21:22:40 +02:00
José Valim
562af52d07
Fix logger docs
2014-07-30 20:16:53 +02:00
José Valim
aeefd59b15
Add Logger
2014-07-30 19:46:26 +02:00