Logging - If valid, then set a locale
authorTim Otten <totten@civicrm.org>
Wed, 1 Nov 2023 19:57:52 +0000 (12:57 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 1 Nov 2023 19:57:52 +0000 (12:57 -0700)
commit0888d7bdba5a4d479084fc5fbc9045da31ab5a1a
tree004cef8ce4dc8f0e834b0d03536f4647dd614074
parent81ff805bf9c7d55db5a72edb2a54a50fd056ef5a
Logging - If valid, then set a locale

This is an updated variation of Seamus's 27974, with two key differences:

1. It calls `setLocale()` one time -- from within `createDebugLogger()`.
   (This becomes an internal detail of how `createDebugLogger()` works.)
2. It calls `setLocale()` conditionally -- if the method actually exists.
   It's not certain whether the method will ultimately be part of the
   official `pear/log` releases.  (*And once upstream changes, it may
   immediately affect D9/D10-style builds.*) This change means that
   civicrm-core should with `pear/log` in either contingency.
CRM/Core/Error.php