Repository navigation
Document the debug buffer limits, console logging and the app type - #145
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents bounding the debug data kept in memory, logging to files from the console and recording the app type, as in quantum-php/framework#594 (#593).
What changed
packages/logger/*: in debug mode only the web app logs to the in-memorymessageadapter; a console command keeps the requested or configured adapter and writes to the log file. Explained inarchitecture.md, with one-sentence links elsewhere.adapters.mddocumentslogging.message.limit(default1000,0keeps every message).packages/mailer/*: the transport log is cut to its lastmailer.transport_log_limitlines at the start of each send (contracts.md);mail_trapis read as a boolean, soMAIL_TRAP=falsefrom.envsends mail (usage.md).packages/app/*:AppContextcarries the app type (getType()), a required third constructor argument, and the runtime contexts copy it (contracts.md,architecture.md); newis_web_app()andis_console_app()helpers (helpers.md).packages/tracer/architecture.md: the console or web error output follows the app that was booted, notPHP_SAPI.packages/database/adapters.md,advanced-features/database.md: Idiorm'sloggingfollowsis_debug_mode(), solastQuery()andqueryLog()return queries only in debug mode, and the log has no limit in a long-running debug command.Changed paths
v3.0/packages/logger/overview.mdv3.0/packages/logger/usage.mdv3.0/packages/logger/contracts.mdv3.0/packages/logger/architecture.mdv3.0/packages/logger/adapters.mdv3.0/packages/logger/helpers.mdv3.0/packages/mailer/usage.mdv3.0/packages/mailer/contracts.mdv3.0/packages/mailer/architecture.mdv3.0/packages/app/contracts.mdv3.0/packages/app/architecture.mdv3.0/packages/app/helpers.mdv3.0/packages/tracer/architecture.mdv3.0/packages/database/adapters.mdv3.0/advanced-features/database.mdSUMMARY.md: no change.