Commit Graph

33 Commits

Author SHA1 Message Date
Paul Adenot
636fea31ef Bug 1447622 - Add a way to output raw MOZ_LOG, without prefixes. r=erahm
MOZ_LOG=modules:4,raw now outputs the log without prefixes with the thread name
and date and stuff, just the exact string that was specified.

MozReview-Commit-ID: HACT5EM4BFm
2018-03-21 12:11:17 +01:00
Eric Rahm
c1953f365e Bug 1436768 - Avoid initializing LogModuleManager more than once. r=froydnj
This adds some assertions to make the intended usage of LogModuleManager::Init
more clear.
2018-02-08 16:25:07 -08:00
Andrew Sutherland
beb23ceece Bug 1428979 - MOZ_LOG should include the pid with the thread name by default. r=erahm 2018-01-09 01:50:53 -05:00
Chris Pearce
605a78c064 Bug 1416597 - Include Printf.h in Logging.cpp. r=froydnj
MozReview-Commit-ID: 5ZMMkvaOKtO
2017-11-13 10:07:39 +13:00
Nathan Froyd
919278f28c Bug 1386918 - out-of-line LazyLogModule::operator LogModule*(); r=erahm
This function takes up quite a bit of space, and there's no need to for
the log getter to be inlined everywhere.  Moving this to out-of-line
code saves ~200K on x86-64 Linux.
2017-08-18 12:32:05 -04:00
Tom Tromey
4bb94c4294 Bug 1334279 - mark vsprintf-likes with MOZ_FORMAT_PRINTF; r=froydnj
This annotates vsprintf-like functions with MOZ_FORMAT_PRINTF.  This may
provide some minimal checking of such calls (the GCC docs say that it
checks for the string for "consistency"); but in any case shouldn't
hurt.

MozReview-Commit-ID: HgnAK1LiorE
2017-05-04 12:10:19 -06:00
Tom Tromey
a0148cdc8d Bug 1334278 - change mozilla::Smprintf to return a UniquePtr; r=froydnj
Change mozilla::Smprintf and friends to return a UniquePtr, rather than
relying on manual memory management.  (Though after this patch there are
still a handful of spots needing SmprintfFree.)

MozReview-Commit-ID: COa4nzIX5qa
2017-03-03 08:17:27 -07:00
Eric Rahm
628826ee01 Bug 1353143 - Part 6: Remove prlog.h from mozilla/Logging.h. r=froydnj
This removes NSPR logging references from mozilla logging.

MozReview-Commit-ID: 8Zq2tbhdCv
2017-04-01 10:23:18 -07:00
Paul Adenot
5280be2fb2 Bug 1345517 - Remove unrelated debug printfs.
MozReview-Commit-ID: JvGrIBDk78b
2017-03-10 17:05:06 +01:00
Paul Adenot
dc5cd39131 Bug 1345517 - Add new AudioNodes to the Web Audio devtools. r=jsantell
MozReview-Commit-ID: KmTShPEXkBe
2017-03-08 17:16:43 +01:00
Honza Bambas
37cefa6a63 Bug 1320458 - Make logging by sandboxed child processes to a file work on Windows, r=aklotz
MozReview-Commit-ID: 7eiW3Lo6q8Z
2017-03-06 17:42:31 +01:00
Honza Bambas
6878cdeb28 Bug 1341017 - Fix XPCOM logging to work correctly with vsnprintf results. r=froydnj 2017-03-01 05:02:00 -05:00
Tom Tromey
a4b717ab39 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Valentin Gosu
692c2257e0 Bug 1306920 - Make sure log file is closed when clearing it at runtime r=nfroyd 2016-10-05 11:34:12 +02:00
Valentin Gosu
c88561767e Bug 1239686 - Add method to set logging file at runtime r=nfroyd
* Only allows setting the log file at runtime if not set by an Env Var
* LogModulePrefWatcher will watch logging.config. prefs and call into Logging.cpp to set the log file, sync or timestamp
* Log files set by pref will have a -main.PID or -child.PID suffix
* If the logging.config.clear_on_startup pref is true, prefs will be reset upon restart.
MozReview-Commit-ID: CWJujX4jm2A
2016-09-19 17:39:47 +02:00
Igor
9c81c3c1ee Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor
972b8460e2 Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Honza Bambas
a1e1434b8d Bug 1244306 - Rotate mozlog files within a size limit. r=erahm 2016-07-29 06:51:00 -04:00
Ralph Giles
1eec789c7b Bug 1275439 - Switch debugging to MOZ_LOG. r=erahm
This is shorter than MOZ_LOG_MODULES and equally clear.

Add a deprecation warning to encourge folks to migrate,
and update references in the test runner.

MozReview-Commit-ID: HYY3Q9tSu13
2016-05-16 15:49:20 -07:00
Honza Bambas
5d90c3c490 Bug 1248565 - Introduce MOZ_LOG_* variables for mozilla logging. r=erahm 2016-03-10 08:22:00 -05:00
Honza Bambas
d15b9d8fbf Bug 961430 - Allow pid be added to the log file name automatically. r=froydnj 2016-02-18 07:56:00 -05:00
Honza Bambas
c1a4decbcf Bug 885952 - Add thread name to MozLogging, r=froydnj 2016-02-02 07:21:00 +01:00
Bill McCloskey
2da50c6487 Bug 1242097 - Support sync module for logging (r=erahm) 2016-01-27 15:08:56 -08:00
Wes Kocher
be1afe2e14 Backed out 10 changesets (bug 1242097, bug 1240985) for near-permafailing in test_plugin_focus.html
Backed out changeset 30f1acd9387f (bug 1240985)
Backed out changeset 6d7f80a057f0 (bug 1240985)
Backed out changeset c3dfc2c674ff (bug 1240985)
Backed out changeset b7f2ce03b34e (bug 1240985)
Backed out changeset 2c0c0ed35656 (bug 1240985)
Backed out changeset 85c8cb422bad (bug 1240985)
Backed out changeset 06b4cb890ab0 (bug 1240985)
Backed out changeset f10c0445c450 (bug 1240985)
Backed out changeset 62eaf89ab82f (bug 1242097)
Backed out changeset b94c1a472d46 (bug 1240985)
2016-01-26 09:55:59 -08:00
Bill McCloskey
8756335441 Bug 1242097 - Support sync module for logging (r=erahm) 2016-01-25 21:49:42 -08:00
Eric Rahm
245496a61b Bug 1239941 - Copy va_list before using it in LogModuleManager::Print. r=froydnj 2016-01-15 10:14:26 -08:00
Eric Rahm
fb3466393a Bug 1239212 - Append missing newlines to log messages. r=froydnj 2016-01-13 10:58:44 -08:00
Eric Rahm
dac33b4a3c Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Phil Ringnalda
770582015d Back out 3e168e5a04bf (bug 1174972) for build bustage
CLOSED TREE
2016-01-11 20:04:40 -08:00
Eric Rahm
45e95540c9 Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Eric Rahm
8f822a81fe Bug 1223222 - Part 3: Remove usage of PR_NewLogModule in mozilla LogModule code. r=froydnj 2016-01-05 12:16:03 -08:00
Eric Rahm
f0d76384f7 Bug 1233881 - Support dynamically setting log levels at runtime via prefs. r=froydnj
Adds support for changing log levels at runtime via 'logging.*' preferences.
2015-12-22 15:09:41 -08:00
Eric Rahm
92936288bb Bug 1174785 - Part 1: Add LogModule, LogModuleManager, and LazyLogModule. r=froydnj
The logging interface is moved to xpcom/base, a LogModule wrapper for PR_Log is
added, a thread-safe LogModuleManager is added, and a LazyLogModule class used
to lazily load log modules in a thread-safe manner is added.
2015-10-19 12:22:11 -07:00