Zeke Dou and c4710n
01366ef526
Add Logger.levels/0 ( #13136 )
...
Co-authored-by: c4710n <c4710n@users.noreply.github.com >
2023-11-23 22:09:09 +08:00
Andrea Leopardi
abd4f54d78
Fix typo in Logger docs
2023-11-23 12:11:07 +01:00
José Valim
1ff5e0c88b
Improve Logger docs, closes #13119
2023-11-22 09:24:37 +08:00
Panagiotis Nezis
33be0abbf4
Fix misc typos ( #12844 )
2023-08-07 11:37:03 +02:00
Adam Kirk
cf37d0a676
Add filtering docs to Logger ( #12827 )
2023-08-02 11:51:51 +02:00
Andrea Leopardi
15ce8706e2
Fix many small typos
2023-07-09 16:23:18 +02:00
Cristiano Piemontese
2ee7b59921
Add missing p in docs ( #12768 )
2023-07-07 12:10:18 +02:00
José Valim
8bc67d384b
Use PID valid for 32-bit systems, closes #12741
2023-07-02 10:28:58 +02:00
José Valim
028dbd71a2
Do not assume Logger has been loaded at compile-time
2023-06-27 15:02:20 +02:00
José Valim
7303e58d2b
Handle :function metadata properly, closes #12703
2023-06-23 13:07:04 +02:00
José Valim
7b3558d030
Improve Logger docs
2023-06-18 17:12:18 +02:00
José Valim
7454333fd0
Require pin variable when accessing variable inside binary size in match, closes #12588
2023-05-26 16:35:36 +02:00
José Valim
755c8393b6
mix format
2023-05-25 17:56:11 +02:00
Łukasz Samson
02d6b24340
fix typo and improve warning message ( #12600 )
2023-05-25 15:34:00 +02:00
José Valim
ecdf684381
Reduce footprint of tasks
...
Tasks were launched with proc_lib, which added
additional processing on boot. We removed the
proc_lib layer, which has the benefit of removing
the double logging (which only happened on tasks
but not any other behaviour).
2023-05-25 09:23:16 +02:00
José Valim
ac15a185fc
Add always_evaluate_messages to Logger
...
Closes #12497
Closes #12480
2023-05-04 12:59:26 +02:00
Christopher Keele
aecd523c39
Convert Logger's default_handler config into maps ( #12538 )
...
If the `:config` provided to `:default_handler` is
a keyword list, we will now convert it into a map
as expected by `:logger_std_h`, to support deep
`Config.config` keyword list merging.
2023-04-30 09:59:05 +02:00
José Valim
bdad28e708
No need to revert trap exits
2023-03-24 23:17:16 +01:00
Kevin
2a3411d170
Update tests to new OTP start behaviour ( #12490 )
2023-03-23 15:07:24 +01:00
sabiwara
07086a9bec
Fix logger formatting in OTP26 ( #12434 )
2023-03-23 14:11:50 +01:00
José Valim
53cd4f7c7a
Document ansi_color metadata, closes #12489
2023-03-23 13:50:49 +01:00
José Valim
d6972b3892
Update CHANGELOG
2023-03-08 13:59:53 +01:00
Andrea Leopardi
58797d9387
Fix "@doc since" for some Logger macros ( #12429 )
...
Some metaprogramming was leading to `@doc since: "1.11.0"` being used
for all generated Logger macros. Instead, it should be present only for
"newer" Erlang levels (such as "notice" or "critical"), and not levels
such as "error" which were always present in Elixir.
2023-02-27 15:51:13 +01:00
Andrea Leopardi
253e3ab640
Expose :logger's global metadata ( #12413 )
2023-02-17 11:21:41 +01:00
Andrea Leopardi and José Valim
7dac919d2b
Add Logger.add_handlers/1 ( #12412 )
...
Co-authored-by: José Valim <jose.valim@dashbit.co >
2023-02-17 10:35:37 +01:00
Andrea Leopardi
48d3365cd6
Add spec to Logger.default_formatter/1 ( #12406 )
2023-02-16 12:43:52 +01:00
José Valim
bb6a218b1b
Finish LoggerBackends extraction
2023-02-16 10:04:17 +01:00
José Valim
49893b635d
Use ~c for filename
2023-02-15 17:39:49 +01:00
José Valim
318dd5297b
Introduce default_formatter and default_handler config for Logger ( #12400 )
...
We now fully integrate with Erlang/OTP logger.
* Logger.Formatter can now instantiate a compatible Erlamg/OTP logger formatter
* The default_handler configures the default handler
* The default_formatter configures the default formatter
* Backends front-end will be moved to logger_backends package,
but the implementation will still be shipped as part of Elixir
2023-02-15 17:31:18 +01:00
José Valim
26f6727eb8
Convert Logger translator into a logger filter ( #12395 )
...
The separation will help us extract the Logger
formatter into its own entity in future commits.
2023-02-14 09:12:37 +01:00
bbhoss
cb2fd9db38
Add support for ports in Logger metadata ( #12332 )
...
Resolves #12328
2023-01-12 00:26:56 +01:00
José Valim
dea8b432ea
Remove unnecessary nil clause ( #12329 )
2023-01-11 09:48:56 +01:00
José Valim
72988c7843
Document not all metadata can be replaced, closes #12316
2023-01-04 12:06:58 +01:00
José Valim
0a1a5991d9
Remove unecessary parens in nullary type funs
2022-10-14 13:55:23 +02:00
Parker Selbert
b67e722d68
Define a callback for Logger.Translator ( #12177 )
2022-10-07 09:01:37 +02:00
José Valim
291bf08b3f
Improve logger deprecation warning from config files
2022-09-01 11:47:28 +02:00
sabiwara
29bf449f3f
Evaluate formating charlists as ~c sigils ( #12064 )
2022-08-10 06:47:00 +02:00
Benjamin Milde
b06c9aa9ff
Improve logger documentation ( #12025 )
2022-07-28 12:09:51 +02:00
José Valim
76a683f41c
Add deprecations
2022-07-27 17:18:53 +02:00
José Valim
de860e4a5e
Do not discard config on Logger.configure/1, closes #12016
2022-07-27 16:22:15 +02:00
José Valim
1b60acbe9e
Allow LINE to be set for tests
2022-07-18 09:58:14 +02:00
Andrea Leopardi
b6df1aafbf
Improve docs and specs around custom log formatting ( #11935 )
2022-06-23 17:32:38 +02:00
José Valim
195558496d
Move custom formatting docs to Logger.Formatter
2022-06-11 09:32:44 +02:00
Andrea leopardi
2c397d23e6
Fix typo in a TODO comment
2022-05-17 10:58:11 +02:00
José Valim
4b34231fb1
Allow :warning to configure Logger Console color
2022-05-15 23:30:44 +02:00
José Valim
4da2f8de7a
Use :warning level for Logger threshold
2022-05-15 23:27:51 +02:00
Jonatan Männchen
706f33d0b0
Return no_translation error in StringIO put_chars as in Erlang ( #11756 )
2022-04-25 12:05:01 +02:00
Michał Łępicki
247b93624f
Fix Logger docs and specs ( #11697 )
2022-03-11 11:06:04 +01:00
Stefan Chrobot
7269438372
Add Logger.put_process_level/2 and rewrite enable/1 and disable/1 ( #11691 )
2022-03-10 10:16:22 +01:00
Jinkyou Son (Json)
f4d14047f0
Deprecate levelpad of Logger.Formatter ( #11633 )
2022-02-17 08:17:40 +01:00