What is verbose constant?
Answers
Answered by
0
Verbose should never be compiled into an application except during development. Debug logs are compiled in but stripped at runtime. Error, warning and info logs are always kept. Tip: A good convention is to declare a TAG constant in your class: ... and use that in subsequent calls to the log methods.
Answered by
0
Console commands have different verbosity levels, which determine the messages displayed in their output. By default, commands display only the most useful messages, but you can control their verbosity with the -q and -v options:
php bin/console some-command -q php bin/console some-command --quiet php bin/console some-command php bin/console some-command -v php bin/console some-command -vv php bin/console some-command -vvv
The verbosity level can also be controlled globally for all commands with the SHELL_VERBOSITY environment variable (the -q and -v options still have more precedence over the value of SHELL_VERBOSITY):
Console optionSHELL_VERBOSITYvalueEquivalent PHP constant-q or --quiet-1OutputInterface::VERBOSITY_QUIET(none)0OutputInterface::VERBOSITY_NORMAL-v1OutputInterface::VERBOSITY_VERBOSE-vv2OutputInterface::VERBOSITY_VERY_VERBOSE-vvv3OutputInterface::VERBOSITY_DEBUG
It is possible to print a message in a command for only a specific verbosity leve
php bin/console some-command -q php bin/console some-command --quiet php bin/console some-command php bin/console some-command -v php bin/console some-command -vv php bin/console some-command -vvv
The verbosity level can also be controlled globally for all commands with the SHELL_VERBOSITY environment variable (the -q and -v options still have more precedence over the value of SHELL_VERBOSITY):
Console optionSHELL_VERBOSITYvalueEquivalent PHP constant-q or --quiet-1OutputInterface::VERBOSITY_QUIET(none)0OutputInterface::VERBOSITY_NORMAL-v1OutputInterface::VERBOSITY_VERBOSE-vv2OutputInterface::VERBOSITY_VERY_VERBOSE-vvv3OutputInterface::VERBOSITY_DEBUG
It is possible to print a message in a command for only a specific verbosity leve
Similar questions
Computer Science,
7 months ago
CBSE BOARD X,
7 months ago
Physics,
7 months ago
Art,
1 year ago
Physics,
1 year ago
Science,
1 year ago
Math,
1 year ago