Commit Graph

100 Commits

Author SHA1 Message Date
Carsten Brandt
9d854c0f25 improved docs for #14273 2017-09-06 09:32:50 +02:00
Dmitry Dorogin
9b01ca275f Fixes #14273: yii\log\Target::$enabled now supports callable value (#14539)
* Fixes #14273: yii\log\Target:: now supports callable value

* added empty line in changelog [skip ci]

* getter and setter

* Update Target.php
2017-09-01 23:49:53 +02:00
Robert Korulczyk
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
Robert Korulczyk
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
Alexander Makarov
d1d60e2d19 Fixes #14341: Fixed regression in error handling introduced by fixing #14264 2017-06-24 02:28:54 +03:00
Robert Korulczyk
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
Bizley
deea1829db Fixes #14264: Fixed a bug where yii\log\Logger::calculateTimings() was not accepting messages with array tokens 2017-06-08 12:57:43 +03:00
Carsten Brandt
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
Bizley
ddee256a1a Fixes #14133: Fixed bug when calculating timings with mixed nested profile begin and end in yii\log\Logger::calculateTimings() 2017-05-12 11:48:16 +03:00
Carsten Brandt
5ed6910e1c Added support for cloning a db connection
improved fix #14020
fixes #13890

https://github.com/yiisoft/yii2/pull/14020/files#r115185865

close #14121
2017-05-10 09:46:10 +02:00
Andrey Akimov
5695b869a9 Fixes #13890: DbTarget log transaction bug 2017-05-04 20:30:38 +02:00
Carsten Brandt
c19b2f7dc8 release version 2.0.11 2017-02-01 17:46:29 +01:00
Alexander Makarov
cc37cd626f Fixes #12599: Fixed MSSQL fail to work with nvarbinary. Enhanced SQL scripts compatibility with older versions 2017-01-23 10:31:52 +03:00
Sergei Malmygin
3ea671454c Fixes #12133: Fixed getDbTargets() function in yii\log\migrations\m141106_185632_log_init that would create a log table correctly 2017-01-15 21:53:36 +03:00
bashkarev
338e5967cb Added Logging of memory usage
calculateTimings added options: `memory`, `memoryDiff` memory_get_usage only the used memory is reported.

close #13268
2017-01-02 02:01:49 +01:00
Tim Beks
f23dc5aee9 Add attribute to set the openlog $option attribute for SyslogTarget
Fixes issue #13074
close #13075
2016-11-29 00:00:24 +01:00
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
Boudewijn Vahrmeijer
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
Klimov Paul
09b1fd47e0 Fixed yii\log\FileTarget does not apply fileMode for rotated via copy files 2016-08-30 13:41:54 +03:00
Dmitriy Makarov
2d9b659777 Fixes #12296: Added value validation to yii\log\Target::setLevels() 2016-08-25 20:47:03 +03:00
Dmitriy Makarov
51d9c288cb Added missing 'LEVEL_PROFILE' (#12068) 2016-08-03 11:11:50 +03:00
Dmitriy Makarov
5189693560 Added 'LEVEL_PROFILE' to the map of levels (#12045) 2016-07-29 16:25:03 +03:00
Carsten Brandt
217d50e4ff improved PHPdoc and @since annotations 2016-07-11 12:58:43 +02:00
Alexander Makarov
4fd4ac04b1 Minor adjustments for #11462 2016-07-03 02:05:13 +03:00
Viktor Pikaev
30bb9bd7c8 Fixes #11462: Added support of filtering rules to yii\log\Target::$logVar, added \yii\helpers\BaseArrayHelper::filter() method 2016-07-03 01:56:05 +03:00
Alexander Makarov
7cea46bcb4 Changed SQLite fix #11652 according to https://github.com/yiisoft/yii2/pull/11653#issuecomment-224016289 2016-06-06 19:57:42 +03:00
Boudewijn Vahrmeijer
0a60466729 Fixes #11527: Fixed bigPrimaryKey() for SQLite 2016-06-06 19:33:22 +03:00
Carsten Brandt
731769241b release version 2.0.8 2016-04-28 16:50:20 +02:00
Carsten Brandt
22503ebe97 allow setting custom logger in Dispatcher via config
fixes #11056
2016-04-22 10:53:59 +02:00
zuozp8
95a7631e4f fixes #11333 avoid serializing php7 errors (#11335)
fixes #11333
2016-04-13 05:52:48 +02:00
Alexander Makarov
1f7134634b Use static:: instead of $this for static method calls 2016-02-16 14:06:23 +03:00
SilverFire - Dmitry Naumenko
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
Daniel Gomez Pan
540883e179 Update syntax migration 2015-10-05 06:02:11 +02:00
Carsten Brandt
543d107508 applied the same fix as #7305 also to DbTarget
fixes #6354
2015-08-03 00:45:34 +02:00
Sebastian Chojniak
6ee285f321 unused imports removed 2015-07-09 22:20:11 +02:00
Alexander Mohorev
ae42a054bb PSR-2 spaces, commas, etc 2015-06-09 00:05:06 +03:00
Alexander Mohorev
0c5e4b7105 PSR-2 foreach statement 2015-06-08 23:21:21 +03:00
Carsten Brandt
dd1995551c convert exceptions to string before saving log messages
fixes #7305
2015-05-15 18:49:38 +02:00
Klimov Paul
771ff15133 Fixed yii\log\Logger unable to export session id
close #8174
fixes #8036
2015-04-24 18:22:26 +02:00
Alexander Makarov
796a0e6156 Fixes #7383: Fix precision loss in log timestamps when using yii\log\DBTarget 2015-02-26 04:11:27 +03:00
Alexander Makarov
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00
Carsten Brandt
7c609ad8fb allow disabling log rotation
fixes #6896

close #6913
2015-01-22 16:57:23 +01:00
Tobias Munk
b33824044f added check for undefined application to log Target
allows using logger without a Yii application now.

close #6739
2015-01-07 23:15:38 +01:00
Qiang Xue
d341bf02b4 Fixes #6398: Added support for specifying dependent component in terms of a configuration array for classes such as DbCache 2015-01-04 19:28:05 -05:00
Alexander Makarov
ab0033542b Fixes #6247: Logger and error handler are now using slightly less memory 2014-12-17 00:39:54 +03:00
Alexander Makarov
42ca4bb991 Fixed yii\log\DbTarget migration and SQLs to use float column for log_time 2014-11-12 14:06:39 +03:00
Qiang Xue
88caccd61d Fixes #5997: The same message may be exported twice to log targets 2014-11-10 13:49:19 -05:00
Klimov Paul
f91929761a yii\log\Logger::flush() updated to reset messages before passing them to the dispatcher. 2014-11-10 13:46:48 -05:00
Qiang Xue
f1812210a8 Fixes #5768: When setting data-confirm attribute to a submit button, clicking on the button would not trigger form submission 2014-11-07 10:29:04 -05:00
Qiang Xue
8923d20a3f Fixes #5619: yii\log\Target should not attempt to start session when there is none 2014-11-07 09:53:45 -05:00