Guillermo Pages
74c795eaa9
docs: Logger daily rotation requires a PHP-user-writable log directory
...
rename() needs write permission on the DIRECTORY; without it rotation
fails silently while appends succeed, growing log.txt unbounded.
Documents the correct ownership/mode, the health check, and the
Nov 2021 - Jul 2026 production incident (945MB log.txt filled the
15GB disk and truncated a Solr reindex). Also notes that these logs
contain raw authenticate() passwords and must be treated as secrets.
2026-07-08 21:13:53 +02:00
Guillermo Pages
ce4cfcdb7a
Fix package name to bsr/utils for composer compatibility
2026-01-27 20:38:03 +01:00
Guillermo Pages
b6f048d81c
refactor: remove hardcoded credentials from config
...
- Strip configuration.local.php to logger-only defaults
- Remove db, solr, session, checkfile_url, worker IDs (unused legacy)
- Clean credential comments from logger config files
- Add .env.example template
- Add .env to .gitignore
2026-01-14 14:15:02 +01:00
Guillermo Pages
7e79eca195
build: change package name to meow/php-bsrutils
2023-08-23 10:21:39 +02:00
Guillermo Pages
67d6be02c5
fix: only variables should be passed by reference
2022-10-09 20:01:55 +02:00
Guillermo Pages
a9e45feb7f
feat: support variables
2022-09-11 16:17:00 +02:00
Guillermo Pages
858a85954d
feat: add better exception message
2022-07-01 11:20:12 +02:00
Guillermo Pages
aeec3e36d1
fix: too many root slashes
2021-09-13 16:34:00 +02:00
Guillermo Pages
232fa35e6d
fix: File Exception.php not found
2021-09-13 16:20:58 +02:00
Guillermo Pages
85ecae5365
fix: typo
2021-08-30 17:53:18 +02:00
Guillermo Pages
3702d526bd
feat: add DotEnv class
2021-08-30 17:52:45 +02:00
Guillermo Dev
2664f6261c
forgot static
2018-12-04 14:05:27 +01:00
Guillermo Dev
ac7d6d9379
add more ways to get environement variables to figure out configuration file to use
2018-12-04 13:22:39 +01:00
Guillermo Dev
2e429e5d35
apache_getenv() is not defined everywhere replace with getenv
2018-12-04 01:14:29 +01:00
Guillermo Dev
9200cc757b
removed php_sapi_name() === 'cli' check that assumed development config
2018-12-04 01:09:13 +01:00
Guillermo Dev
762e6ace96
tests pass
2018-10-21 23:02:10 +02:00
Guillermo Dev
5300fbc3b9
add file system class for missing file/dir creation with writability exception
2018-10-21 22:45:15 +02:00
Guillermo Dev
7deff8ec61
when code is run from cli apache_getenv does not work, but it usually means it is dev env
2018-10-21 17:58:45 +02:00
Guillermo Dev
be0895e91e
use apache env vars to load different config files
2018-10-17 20:16:00 +02:00
Guillermo Dev
78e67a25ec
removed phpdocumentor
2018-10-14 00:34:49 +02:00
Guillermo Dev
cc0750f8a9
BSR to Bsr
2018-10-13 23:10:13 +02:00
Guillermo Dev
efacf6895d
appearance
2018-10-12 16:16:01 +02:00
Guillermo Dev
c59b044ba7
Logger and Configuration have test suites
2018-10-12 16:14:40 +02:00
Guillermo Dev
eb4ba2935c
missing use statement
2018-10-12 01:10:53 +02:00
Guillermo Dev
e215fb0b2a
logger test skeleton
2018-10-12 01:09:26 +02:00
Guillermo Dev
7d0e9b046b
require-dev documentor
2018-10-12 00:43:38 +02:00
Guillermo Dev
fca24b5f3a
refactored logger
2018-10-12 00:33:02 +02:00
Guillermo Dev
22308c5ff2
Added logger into utils package
2018-10-11 13:12:56 +02:00
Guillermo Dev
a099e1b241
changed package name to Utils to add the logger into it
2018-10-11 13:08:43 +02:00
Guillermo Dev
b31570dbdb
ignore vim swap files
2018-10-11 11:36:04 +02:00
Guillermo Dev
97bdda2894
testing file config, pass
2018-10-11 01:40:58 +02:00
Guillermo Dev
40d96a8911
added test for configuration
2018-10-11 00:40:44 +02:00
Guillermo Dev
ca96f06876
setup phpunit
2018-10-10 21:23:18 +02:00
Guillermo Dev
b3dab22eb9
change module name in composer
2018-10-10 14:42:43 +02:00
Guillermo Dev
8183fba17c
first commit
2018-10-10 01:07:53 +02:00