46 Commits

Author SHA1 Message Date
Lonnie Ezell
7e0e1841f4 Merge pull request #625 from natanfelles/docs
Set PHPDocs
2017-07-23 22:00:20 -05:00
Abdul Malik Ikhsan
673df526a4
remove unused use statements 2017-07-24 03:06:02 +07:00
Natan Felles
41ab103c72
Set PHPDocs 2017-07-23 11:34:40 -03:00
Master Yoda
fcce549142
Update (2) copyright comments per phpDocumentor 2017-07-13 14:20:27 -07:00
Master Yoda
bda7c8a252
Update copyright comments per phpDocumentor 2017-07-13 10:22:49 -07:00
Wuwei Xie
3dbfb5c1b5
finished writing tests for log package 2017-05-27 17:59:02 -07:00
Wuwei Xie
5030fc19f2
Removed commented lines from previous commit 2017-05-25 01:06:48 -07:00
Wuwei Xie
d89e7d702f
Test for ChromeLoggerHandler 2017-05-23 00:46:22 -07:00
Lonnie Ezell
7d6ac70088
Fixing missed Hooks rename issues 2017-04-02 22:57:35 -05:00
Lonnie Ezell
8c46efe89f
Rename Hooks to Events because they are more than what CI3 hooks were and this is more in line with what people expect. 2017-04-02 22:35:11 -05:00
Master Yoda
b6247d1196
Update license & site link to https:// 2017-01-20 00:45:11 -08:00
Master Yoda
bf3e165bfe
Updated copyright to 2017 2016-12-30 12:47:28 -08:00
Lonnie Ezell
7a5f5292fc Moving PSR interfaces to ThirdParty folder 2016-06-24 00:36:25 -05:00
Master Yoda
7b48ec1501 Niggly updates to clear phpdoc errors reported.
Signed-off-by:Master Yoda <jim_parry@bcit.ca>
2016-05-31 09:10:35 -07:00
Master Yoda
4d768e47f1 Add back return type hinting, after updating to phpDocumentor 2.9
Signed-off-by:Master Yoda <jim_parry@bcit.ca>
2016-05-27 09:40:26 -07:00
Master Yoda
e10c37bd93 Fix phpdoc issues, including its not handling PHP7 return type hinting :(
I have put off heavy changes to the Session package documentation, as there is an outstanding PR for it.
Signed-off-by:Master Yoda <jim_parry@bcit.ca>
2016-05-24 12:14:22 -07:00
Master Yoda
c4b13900ff Eliminate errors reported by phpdoc
Signed-off-by:Master Yoda <jim_parry@bcit.ca>
2016-05-24 02:53:11 -07:00
Master Yoda
173eb841c0 Provide the other classes in php-fig/log
Signed-off-by:Master Yoda <jim_parry@bcit.ca>
2016-05-20 14:58:12 -07:00
Master Yoda
f5fce40169 Revert PSR namespace to Psr, for consistency with php-fig.
Signed-off-by:Master Yoda <jim_parry@bcit.ca>
2016-05-20 14:32:00 -07:00
Master Yoda
1b511e3852 Rename Psr namespace to PSR to conform with our style guide.
Note - this was inconsistently handled before, with one PSR and the others Psr namespaces. The current renaming makes most sense in light of the styleguide.

Also updates the copyright notices at the beginning of the PSR classes, for proper attribution to PHP-FIG.
Signed-off-by:Master Yoda <jim_parry@bcit.ca>
2016-05-20 11:35:07 -07:00
kenjis
53b50c31df Add CodeIgniter\Services class for better testing
We use CodeIgniter\Services as a service locator. It just uses methods in Config\Services class during application execution. But when testing, we provide special CodeIgniter\Services class, which can inject mocks.
2016-04-02 19:00:43 +09:00
Lonnie Ezell
962dca681f Remove unused use statements. Also, Services should be explicit. 2016-03-18 22:11:08 -05:00
Lonnie Ezell
2dbdf08ead Ensuring blank lines at ends of files. 2016-03-18 21:50:38 -05:00
Lonnie Ezell
da4ffc4d17 Swapping over more global instances to use Services 2016-03-18 21:19:37 -05:00
Lonnie Ezell
77782e4805 Code cleaning 2016-03-18 01:02:07 -05:00
Lonnie Ezell
b54c23fe07 Updating Logger docs, and reordering the log levels so threshold actually makes sense. 2016-02-28 22:43:26 -06:00
Lonnie Ezell
d39a1a3ce8 Uppercasing application folders. 2016-02-23 14:01:02 -06:00
Lonnie Ezell
4fcb7607b6 Loggers should be able to display non-string elements. 2016-02-05 09:23:46 -06:00
Lonnie Ezell
954ae5699f Creating a new, site-wide, debug flag. 2016-02-04 21:54:40 -06:00
Lonnie Ezell
5b28294b1f Modified the Logger to cache log messages for the debug toolbar. 2016-02-03 00:19:43 -06:00
Lonnie Ezell
18f288f523 Removing EllisLab from the copyrights 2016-02-01 21:32:53 -06:00
Lonnie Ezell
174037d466 Adding CI Docblock with copyright to system files. 2016-01-31 21:39:50 -06:00
Lonnie Ezell
00f4219468 Removing unneeded line from ChromeLogger. 2016-01-29 22:26:11 -06:00
Lonnie Ezell
a59abe40db Integrated the ChromeLogger into the Hooks system so that it actually works now. 2016-01-29 15:31:37 -06:00
Lonnie Ezell
01889ebd94 Additional logging placeholders are now replaced, and filenames are cleaned. 2016-01-12 22:30:55 -06:00
Lonnie Ezell
4cb5eb0448 Logger tests. Additionally, converting logging to work with string log levels internally, and convert from the int threshold value for user convenience. 2016-01-10 23:59:10 -06:00
Lonnie Ezell
a31d5a51be Ensure that level is loggable. 2015-12-06 22:48:12 -06:00
Lonnie Ezell
4585882dea Caught a simple bug in ChromeLoggerHandler 2015-12-06 22:38:46 -06:00
Lonnie Ezell
e073800f56 Added the initial workings of a ChromeLogger Log Handler. Need to finish once hooks are in place. 2015-12-04 09:48:01 -06:00
Lonnie Ezell
895acab524 Modifying Logger class to support multiple log handlers. 2015-12-04 08:40:41 -06:00
Lonnie Ezell
976c215b95 Refactoring to NOT use the DI container and use a very simple factory class in its place. 2015-11-10 14:16:26 -06:00
Lonnie Ezell
4255dbb31c Adding the LoggerAware trait and interface for framework-agnostic logger use. 2015-10-05 08:51:58 -05:00
Lonnie Ezell
908fbe8fe5 Moving Log interfaces to PSR namespace for framework-agnostic code. Adding LogLevel class for same. 2015-10-05 08:41:09 -05:00
Lonnie Ezell
cd3e822cc1 Logging exceptions should now work. 2015-10-04 22:05:48 -05:00
Lonnie Ezell
8a25d2164d Reminder to implement logging of exceptions. 2015-10-03 00:10:20 -05:00
Lonnie Ezell
41313d6c5e Initial pass at a PSR3-ish logger based on our previous log writing code. 2015-10-03 00:05:04 -05:00