Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\Filesystem\Driver\File $fileDriver, DirectoryList $directoryList) | |
prepareToDryRun () | |
log ($sql) | |
Data Fields | |
const | INPUT_KEY_DRY_RUN_MODE = 'dry-run' |
const | FILE_NAME = 'dry-run-installation.log' |
const | LINE_SEPARATOR = "\n\n" |
This class is responsible for logging dry run SQL`s By default it logs them into filesystem, but it can be extended and you can log them in CLI Current problem with logging output to CLI, is that we have redudant things in CLI output, like modules progress
Definition at line 16 of file DryRunLogger.php.
__construct | ( | \Magento\Framework\Filesystem\Driver\File | $fileDriver, |
DirectoryList | $directoryList | ||
) |
\Magento\Framework\Filesystem\Driver\File | $fileDriver | |
DirectoryList | $directoryList |
Definition at line 48 of file DryRunLogger.php.
log | ( | $sql | ) |
Do log of SQL query, 2 different SQL`s will be divided by one empty line
string | $sql |
Definition at line 133 of file DryRunLogger.php.
prepareToDryRun | ( | ) |
const FILE_NAME = 'dry-run-installation.log' |
File name, where all dry-run SQL`s will be puted
Definition at line 26 of file DryRunLogger.php.
const INPUT_KEY_DRY_RUN_MODE = 'dry-run' |
We will run installation or upgrade in Dry Run mode
Definition at line 21 of file DryRunLogger.php.
const LINE_SEPARATOR = "\n\n" |
Allows to separate 2 different sql statements with this separator Be default is used 2 empty lines
Definition at line 32 of file DryRunLogger.php.