Commit Graph
118 Commits
Author SHA1 Message Date
José Valim 511cb5d3a5 Streamline more code specific to Erlang 18 2015-09-25 12:59:47 +02:00
José Valim f524f25c58 Require Erlang 18.0 forward 2015-09-25 12:01:10 +02:00
eksperimental 7b2fa9192a Use Title Case and backticks for Erlang and Elixir applications
It includes Erlang, Elixir, ExUnit, ExDoc, Logger, IEx, elixirc

It leaves Mix for a different PR.

Command to spot these words:

    ag -s '(?<!(\`))(?<!(\.))(?<!(/))(?<!(:))(?<!(_))(erlang|elixir|eex|iex|ex_unit|ex_doc|logger|elixirc)(?!(:))(?!(\?))(?!(_))(?!(-))(?!(\.))(?!(\`))(?!(/))(?!(>))' \
    --ignore "*.erl" --ignore "*.yrl" --ignore "*.src"
2015-09-09 01:51:22 +07:00
eksperimental 8f0175fd98 Add arity or correct it for functions that are not being linked in the html docs
original issue: https://github.com/elixir-lang/ex_doc/issues/321

I created a shell script that checks for anything references to Modules that are not actually linked
http://git.io/check_not_linked_exdoc.sh

You can see the output here:
https://gist.github.com/eksperimental/6dc9bce36710a3c8b1d9

I will update the script to work with regular elixir projects, so it can be used by other projects
2015-09-08 01:47:15 +07:00
eksperimental 8d5c009b13 Correct descriptions in @doc, @moduledoc, @shortdoc to use Present Continuous
It makes it consistent with the rest of the docs.

I have just looked for the first line in @doc, @moduledoc, so lines bellow it may still need
to be corrected.

@shortdoc all have been corrected.

Inspired by: https://github.com/elixir-lang/elixir/pull/2942

Command to list the first lines:

```sh
  # first line in @moduledoc / @doc
  ag '(@(module)?doc)\s+("{3})(\r|\n|.)\s*+[\w-]+(?<!s)\b'

  # also @shortdoc
  ag '(@shortdoc)\s+("{1,3})(\r|\n|.)\s*+[\w-]+(?<!s)\b'
```
2015-09-07 18:40:58 +07:00
Aleksei Magusev 74fc5ec32f Correct function argument name 2015-08-25 15:43:24 +02:00
Aleksei Magusev b7b7a579fc Cut off "Elixir." prefix for modules in Logger metadata 2015-08-25 15:43:20 +02:00
Aleksei Magusev 280b6502df Do not inject :application key in metadata if it has nil value 2015-08-25 15:33:53 +02:00
James Fish 4d69404bfe Add application to logger metadata 2015-08-13 11:24:52 +01:00
José Valim a874869a0e Support translator_inspect_opts
This allow developers to configure how state and message
are formatted when translating OTP errors and reports.

Closes #2880
2015-08-10 15:33:21 +02:00
José Valim 450eabf8da Merge pull request #3523 from elixir-lang/emj-logger-restart
Start logger if --no-start is passed
2015-07-23 09:18:17 +02:00
Eric Meadows-Jönsson 6f3e22a671 Start logger if --no-start is passed 2015-07-23 00:21:20 +02:00
Aleksei Magusev 8eb29e2527 Preserve metadata order defined in the backend's configuration 2015-07-20 22:12:38 +02:00
Aleksei Magusev d6bb79ae92 Ensure Logger metadata is merged on log call 2015-07-20 21:46:50 +02:00
Aleksei Magusev 1702cda8b2 Allow Logger metadata removal from the pdict 2015-07-20 21:42:09 +02:00
Aleksei Magusev bd9fde4770 Make Logger.log/3 macro and introduce Logger.bare_log/3 instead 2015-07-12 23:38:00 +02:00
José Valim 96381e43b6 Merge pull request #3390 from lexmag/opportunistic-logging-pr
Opportunistic logging, `Logger.CaptureLog` and more
2015-06-30 12:28:06 +02:00
Alexei Sholik b46bc90b72 Fix the logger format in the Logger moduledoc to match the actual used one 2015-06-29 15:15:48 +02:00
Aleksei Magusev 2e56449394 Make error messages in lowercase 2015-06-25 21:54:07 +02:00
Aleksei Magusev 6395775a60 Get rid of ProxyIO and merge :console and :capture backends 2015-06-25 14:46:49 +02:00
James Fish 20e2f133d7 Translate emulator logged process crashes in 18.0+ 2015-06-25 11:55:02 +01:00
James Fish c6203f0b16 Fix unused variable warning in logger test 2015-06-25 11:52:36 +01:00
José Valim e505645a75 Move tests to Erlang 18 which has proper logger behaviour 2015-06-25 13:00:53 +02:00
Aleksei Magusev 14b5767167 Add support for :capture_log ExUnit test tagging 2015-06-24 23:48:03 +02:00
Aleksei Magusev 589c1e55aa Rename Logger.CaptureLog to ExUnit.CaptureLog 2015-06-24 23:48:03 +02:00
Aleksei Magusev b88c747fab Rename ProxyIO to ExUnit.ProxyIO 2015-06-24 23:48:03 +02:00
James Fish 0f57848a6d Document Logger.CLIFormatter 2015-06-24 23:48:03 +02:00
Aleksei Magusev ebfad24553 Add tests for Logger.Backends.Capture 2015-06-24 23:48:02 +02:00
Aleksei Magusev 3a1f97aa86 Introduce Logger.CLIFormatter 2015-06-24 23:48:02 +02:00
Aleksei Magusev d9cdf57f73 Consider :standard_io as a valid device name 2015-06-24 23:48:02 +02:00
James Fish 1a27ebb4ed Add docs and custom io device support to capture_log 2015-06-24 23:48:02 +02:00
Aleksei Magusev 86e2ca4023 Introduce Logger.CaptureLog 2015-06-24 23:48:02 +02:00
Aleksei Magusev 2a0c5a61a1 Introduce Logger.Backends.Capture 2015-06-24 23:48:02 +02:00
Matthieu Guillemot f338f96225 Typo in doc for custom logger backends 2015-06-23 18:55:03 +09:00
James Fish b66f188cd6 Be clear where the config is set for logger 2015-06-22 21:00:38 +01:00
James Fish 5428cd410b Add more configuration examples to Logger 2015-06-22 20:37:18 +01:00
James Fish 6cd1478a2e Move terminate reason to second line in logs
With default settings logger could truncate the log before the
terminate reason if there is a large term beforehand, such as a large
message in a GenServer termination report. Therefore move terminate
reason (the most important information) as near the front of the
message as possible so that as little of it as possible is truncated.
2015-06-20 01:26:56 +01:00
Paul Hieromnimon f7b39ffa15 spell backpressure consistently 2015-06-11 23:37:26 -07:00
James Fish e25f20fd21 Really fix race condition in logger translator test 2015-06-08 12:00:51 +01:00
James Fish 00dc365a66 Fix race condition in logger translator test 2015-06-07 22:01:44 +01:00
Alexei Sholik 02f9d8a724 Handle :undefined in Exception.format_arity/1
We get :undefined when a temporary worker of a simple_one_for_one
supervisor crashes.

Thanks to @fishcakez for feedback
2015-06-07 14:59:01 +03:00
Martin Schürrer 6246d0043f Support printing pids and refs in Logger metadata. 2015-05-18 18:42:32 +02:00
Andrea Leopardi 3d4a566a9b Rename the first argument to the Logger macros
The argument was called `chardata` but the macros accept chardata as well as an
anonymous function (like the documentation for `Logger.log/3` shows). I think
calling the argument `chardata_or_fn` will make documentation a little bit
clearer.
2015-05-18 12:49:50 +02:00
José Valim 733cf1268c Update translator.ex 2015-04-05 18:51:34 +02:00
José Valim a5acfb4bea Fixes for Erlang 18.0-rc1
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>

Conflicts:
	lib/ex_unit/lib/ex_unit/runner.ex
2015-04-05 18:28:50 +02:00
eksperimental cf41811462 add backticks to a massive amount of true, false and nil 2015-03-26 13:21:13 +07:00
eksperimental 8f679e9a0f Explicitely declare argument names for functions with unnamed arguments. 2015-03-25 16:26:07 +07:00
eksperimental 61675c3ea8 Add space after comma: Format consistently 2015-03-17 22:55:27 +07:00
José Valim 2766785188 Add error_logger metadata when notifying Logger 2015-03-07 00:49:54 +01:00
José Valim 16f0b927c6 Merge pull request #3062 from fishcakez/logger_format_stop
Handle OTP 17.4 error_logger terminate reasons
2015-02-17 19:29:10 +01:00