PageRenderTime 17ms queryFilters 1ms Sphinxql 111ms app.CodeModel.GetByIds 83ms findMatchingLines 36ms GetByIds 119ms meta 0ms repositoryFilters 4ms languageFilters 0ms sourceFilters 3ms

179,044 results for 'php log repo:jorgenio/codeigniter' (17 ms)

Source

Language

Repository

16-Application-Management-Tools.txt http://selfpublish.googlecode.com/svn/trunk/ | Unknown | 699 lines
30
31The location of the PHP log files depends on your `php.ini` configuration. If you never bothered about defining this location, PHP probably uses the logging facilities provided by your web server (such as the Apache error logs). In this case, you will find the PHP logs under the web server log directory.
32
34
35In addition to the standard PHP logs, symfony can log a lot of custom events. You can find all the symfony logs under the `myproject/log/` directory. There is one file per application and per environment. For instance, the development environment log file of the `frontend` application is named `frontend_dev.log`, the production one is named `frontend_prod.log`, and so on.
36
64
65There are eight levels of symfony log messages: `emerg`, `alert`, `crit`, `err`, `warning`, `notice`, `info`, and `debug`, which are the same as the `PEAR::Log` package ([http://pear.php.net/package/Log/](http://pear.php.net/package/Log/)) levels. You can configure the maximum level to be logged in each environment in the `factories.yml` configuration file of each application, as demonstrated in Listing 16-4.
66
110>Symfony's logging system is very simple, yet it is also easy to customize.
111>The only prerequisite is that logger classes must extend the `sfLogger` class, which defines a `doLog()` method. Symfony calls the `doLog()` method with two parameters: `$message` (the message to be logged), and `$priority` (the log level).
112>
141
142For both better performance and security, you probably want to store symfony logs in several small files instead of one single large file. The ideal storage strategy for log files is to back up and empty the main log file regularly, but to keep only a limited number of backups. You can enable such a log rotation with a `period` of `7` days and a `history` (number of backups) of `10`, as shown in Listing 16-7. You would work with one active log file plus ten backup files containing seven days' worth of history each. Whenever the next period of seven days ends, the current active log file goes into backup, and the oldest backup is erased.
143
16-Application-Management-Tools.markdown https://github.com/rafaelgou/symfony1-docs.git | Unknown | 683 lines
30
31The location of the PHP log files depends on your `php.ini` configuration. If you never bothered about defining this location, PHP probably uses the logging facilities provided by your web server (such as the Apache error logs). In this case, you will find the PHP logs under the web server log directory.
32
34
35In addition to the standard PHP logs, symfony can log a lot of custom events. You can find all the symfony logs under the `myproject/log/` directory. There is one file per application and per environment. For instance, the development environment log file of the `frontend` application is named `frontend_dev.log`, the production one is named `frontend_prod.log`, and so on.
36
112>Symfony's logging system is very simple, yet it is also easy to customize.
113>The only prerequisite is that logger classes must extend the `sfLogger` class, which defines a `doLog()` method. Symfony calls the `doLog()` method with two parameters: `$message` (the message to be logged), and `$priority` (the log level).
114>
143
144For both better performance and security, you probably want to store symfony logs in several small files instead of one single large file. The ideal storage strategy for log files is to back up and empty the main log file regularly, but to keep only a limited number of backups. You can enable such a log rotation with a `period` of `7` days and a `history` (number of backups) of `10`, as shown in Listing 16-7. You would work with one active log file plus ten backup files containing seven days' worth of history each. Whenever the next period of seven days ends, the current active log file goes into backup, and the oldest backup is erased.
145
308>
309>In Xdebug mode, the log messages are much richer. All the PHP script files and the functions that are called are logged, and symfony knows how to link this information with its internal log. Each line of the log messages table has a double-arrow button, which you can click to see further details about the related request. If something goes wrong, the Xdebug mode gives you the maximum amount of detail to find out why.
310
16-Application-Management-Tools.txt https://bitbucket.org/wildanm/orangehrm | text | 699 lines
30
31The location of the PHP log files depends on your `php.ini` configuration. If you never bothered about defining this location, PHP probably uses the logging facilities provided by your web server (such as the Apache error logs). In this case, you will find the PHP logs under the web server log directory.
32
34
35In addition to the standard PHP logs, symfony can log a lot of custom events. You can find all the symfony logs under the `myproject/log/` directory. There is one file per application and per environment. For instance, the development environment log file of the `frontend` application is named `frontend_dev.log`, the production one is named `frontend_prod.log`, and so on.
36
64
65There are eight levels of symfony log messages: `emerg`, `alert`, `crit`, `err`, `warning`, `notice`, `info`, and `debug`, which are the same as the `PEAR::Log` package ([http://pear.php.net/package/Log/](http://pear.php.net/package/Log/)) levels. You can configure the maximum level to be logged in each environment in the `factories.yml` configuration file of each application, as demonstrated in Listing 16-4.
66
110>Symfony's logging system is very simple, yet it is also easy to customize.
111>The only prerequisite is that logger classes must extend the `sfLogger` class, which defines a `doLog()` method. Symfony calls the `doLog()` method with two parameters: `$message` (the message to be logged), and `$priority` (the log level).
112>
141
142For both better performance and security, you probably want to store symfony logs in several small files instead of one single large file. The ideal storage strategy for log files is to back up and empty the main log file regularly, but to keep only a limited number of backups. You can enable such a log rotation with a `period` of `7` days and a `history` (number of backups) of `10`, as shown in Listing 16-7. You would work with one active log file plus ten backup files containing seven days' worth of history each. Whenever the next period of seven days ends, the current active log file goes into backup, and the oldest backup is erased.
143
mock_objects_tutorial.xml git://github.com/swiftmailer/swiftmailer.git | XML | 375 lines
73    function testTimestamps() {
74        $log = new Log('../temp/test.log');
75        $log->message('Test line');
92                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 1/] in [Test line 1]<br />
93                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 2/] in [Test line 2]<br />
94                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->Created before message<br />
95                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->File created<br />
96                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Found timestamp<br />
97                    <br />
98                    <b>Notice</b>:  Undefined offset:  1 in <b>/home/marcus/projects/lastcraft/tutorial_tests/tests/log_test.php</b> on line <b>44</b><br />
99                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Correct time<br />
100                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testclockadvance->Advancement<br />
237        $clock->setReturnValue('now', 'Timestamp');
238        $log = new Log('../temp/test.log');
239        $log->message('Test line', &$clock);
mock_objects_tutorial.xml git://github.com/swiftmailer/swiftmailer.git | XML | 359 lines
70    function testTimestamps() {
71        $log = new Log('../temp/test.log');
72        $log->message('Test line');
89                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 1/] in [Test line 1]<br />
90                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 2/] in [Test line 2]<br />
91                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->Created before message<br />
92                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->File created<br />
93                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Found timestamp<br />
94                    <br />
95                    <b>Notice</b>:  Undefined offset:  1 in <b>/home/marcus/projects/lastcraft/tutorial_tests/tests/log_test.php</b> on line <b>44</b><br />
96                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Correct time<br />
97                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testclockadvance->Advancement<br />
231        $clock->setReturnValue('now', 'Timestamp');
232        $log = new Log('../temp/test.log');
233        $log->message('Test line', &$clock);
08-Logging.txt git://github.com/eventhorizonpl/forked-php-orm-benchmark.git | Unknown | 449 lines
41
42The meaning of each of the `<log>` nested elements may vary, depending on which log handler you are using. Refer to the [http://www.indelible.org/php/Log/guide.html#standard-log-handlers PEAR::Log] documentation for more details on log handlers configuration and options.
43
125
126Your custom logger could be any object that implements a basic logger interface. Check the `BasicLogger` interface provided with the Propel runtime to see the methods that a logger must implement in order to be compatible with Propel. You do not actually have to implement this interface, but all the specified methods must be present in your container.
127
279
280The combination of the debug mode and a logging facility provides a powerful debugging tool named ''full query logging''. If you have properly configured a log handler, enabling the debug mode (or using `DebugPDO`) automatically logs the executed queries into Propel's default log file:
281
398||`debugpdo.logging.outerglue`||`" | "`||String to use for combining details together on a log line||
399||`debugpdo.logging.realmemoryusage`||`false`||Parameter to [http://www.php.net/manual/en/function.memory-get-usage.php memory_get_usage()] and [http://www.php.net/manual/en/function.memory-get-peak-usage.php memory_get_peak_usage()] calls||
400||`debugpdo.logging.methods`||[http://propel.propelorm.org/browser/branches/1.5/runtime/classes/propel/util/DebugPDO.php#L151 array(...)]||An array of method names `Class::method`) to be included in method call logging||
442$con = Propel::getConnection(MyObjPeer::DATABASE_NAME);
443$logger = Log::factory('syslog', LOG_LOCAL0, 'propel', array(), PEAR_LOG_INFO);
444$con->setLogger($logger);
08-Logging.txt git://github.com/eventhorizonpl/forked-php-orm-benchmark.git | Unknown | 449 lines
41
42The meaning of each of the `<log>` nested elements may vary, depending on which log handler you are using. Most common accepted logger types are `file`, `console`, `syslog`, `display`, `error_log`, `firebug`, and `sqlite`. Refer to the [http://www.indelible.org/php/Log/guide.html#standard-log-handlers PEAR::Log] documentation for more details on log handlers configuration and options.
43
125
126Your custom logger could be any object that implements a basic logger interface. Check the `BasicLogger` interface provided with the Propel runtime to see the methods that a logger must implement in order to be compatible with Propel. You do not actually have to implement this interface, but all the specified methods must be present in your container.
127
279
280The combination of the debug mode and a logging facility provides a powerful debugging tool named ''full query logging''. If you have properly configured a log handler, enabling the debug mode (or using `DebugPDO`) automatically logs the executed queries into Propel's default log file:
281
398||`debugpdo.logging.outerglue`||`" | "`||String to use for combining details together on a log line||
399||`debugpdo.logging.realmemoryusage`||`false`||Parameter to [http://www.php.net/manual/en/function.memory-get-usage.php memory_get_usage()] and [http://www.php.net/manual/en/function.memory-get-peak-usage.php memory_get_peak_usage()] calls||
400||`debugpdo.logging.methods`||[http://propel.propelorm.org/browser/branches/1.6/runtime/classes/propel/util/DebugPDO.php#L151 array(...)]||An array of method names `Class::method`) to be included in method call logging||
442$con = Propel::getConnection(MyObjPeer::DATABASE_NAME);
443$logger = Log::factory('syslog', LOG_LOCAL0, 'propel', array(), PEAR_LOG_INFO);
444$con->setLogger($logger);
mock_objects_tutorial.xml git://github.com/99designs/simpletest.git | XML | 360 lines
64    function testTimestampIsEmittedInMessage() {
65        $log = new Log('../temp/test.log');
66        $log->message('Test line');
81                    <h1>All tests</h1>
82                    <span class="pass">Pass</span>: log_test.php->Log class test->testAppendingToFile->Expecting [/Test line 1/] in [Test line 1]<br />
83                    <span class="pass">Pass</span>: log_test.php->Log class test->testAppendingToFile->Expecting [/Test line 2/] in [Test line 2]<br />
84                    <span class="pass">Pass</span>: log_test.php->Log class test->testCreatingNewFile->Created before message<br />
85                    <span class="pass">Pass</span>: log_test.php->Log class test->testCreatingNewFile->File created<br />
86                    <span class="fail">Fail</span>: log_test.php->Log class test->testTimestampIsEmittedInMessage->Found timestamp<br />
88                    <b>Notice</b>:  Undefined offset:  1 in <b>/home/marcus/projects/lastcraft/tutorial_tests/tests/log_test.php</b> on line <b>44</b><br />
89                    <span class="fail">Fail</span>: log_test.php->Log class test->testTimestampIsEmittedInMessage->Correct time<br />
90                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testClockAdvance->Advancement<br />
231        <strong>$clock->returns('now', 'Timestamp');</strong>
232        $log = new Log('../temp/test.log');
233        $log->message('Test line', $clock);
mock_objects_tutorial.xml git://github.com/99designs/simpletest.git | XML | 351 lines
63    function testTimestampIsEmittedInMessage() {
64        $log = new Log('../temp/test.log');
65        $log->message('Test line');
80                    <h1>All tests</h1>
81                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 1/] in [Test line 1]<br />
82                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 2/] in [Test line 2]<br />
83                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->Created before message<br />
84                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->File created<br />
85                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Found timestamp<br />
87                    <b>Notice</b>:  Undefined offset:  1 in <b>/home/marcus/projects/lastcraft/tutorial_tests/tests/log_test.php</b> on line <b>44</b><br />
88                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Correct time<br />
89                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testclockadvance->Advancement<br />
226        $clock->returns('now', 'Timestamp');
227        $log = new Log('../temp/test.log');
228        $log->message('Test line', &$clock);
mock_objects_tutorial.xml git://github.com/99designs/simpletest.git | XML | 374 lines
73    function testTimestamps() {
74        $log = new Log('../temp/test.log');
75        $log->message('Test line');
92                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 1/] in [Test line 1]<br />
93                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 2/] in [Test line 2]<br />
94                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->Created before message<br />
95                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->File created<br />
96                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Found timestamp<br />
97                    <br />
98                    <b>Notice</b>:  Undefined offset:  1 in <b>/home/marcus/projects/lastcraft/tutorial_tests/tests/log_test.php</b> on line <b>44</b><br />
99                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Correct time<br />
100                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testclockadvance->Advancement<br />
237        $clock->setReturnValue('now', 'Timestamp');
238        $log = new Log('../temp/test.log');
239        $log->message('Test line', &$clock);
mock_objects_tutorial.xml https://bitbucket.org/cryofrost/portal.git | XML | 374 lines
73    function testTimestamps() {
74        $log = new Log('../temp/test.log');
75        $log->message('Test line');
92                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 1/] in [Test line 1]<br />
93                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 2/] in [Test line 2]<br />
94                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->Created before message<br />
95                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->File created<br />
96                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Found timestamp<br />
97                    <br />
98                    <b>Notice</b>:  Undefined offset:  1 in <b>/home/marcus/projects/lastcraft/tutorial_tests/tests/log_test.php</b> on line <b>44</b><br />
99                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Correct time<br />
100                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testclockadvance->Advancement<br />
237        $clock->setReturnValue('now', 'Timestamp');
238        $log = new Log('../temp/test.log');
239        $log->message('Test line', &$clock);
mock_objects_tutorial.xml https://bitbucket.org/cryofrost/portal.git | XML | 359 lines
70    function testTimestamps() {
71        $log = new Log('../temp/test.log');
72        $log->message('Test line');
89                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 1/] in [Test line 1]<br />
90                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 2/] in [Test line 2]<br />
91                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->Created before message<br />
92                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->File created<br />
93                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Found timestamp<br />
94                    <br />
95                    <b>Notice</b>:  Undefined offset:  1 in <b>/home/marcus/projects/lastcraft/tutorial_tests/tests/log_test.php</b> on line <b>44</b><br />
96                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Correct time<br />
97                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testclockadvance->Advancement<br />
231        $clock->setReturnValue('now', 'Timestamp');
232        $log = new Log('../temp/test.log');
233        $log->message('Test line', &$clock);
mock_objects_tutorial.xml https://bitbucket.org/dudesl/pyresys.git | XML | 374 lines
73    function testTimestamps() {
74        $log = new Log('../temp/test.log');
75        $log->message('Test line');
92                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 1/] in [Test line 1]<br />
93                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 2/] in [Test line 2]<br />
94                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->Created before message<br />
95                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->File created<br />
96                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Found timestamp<br />
97                    <br />
98                    <b>Notice</b>:  Undefined offset:  1 in <b>/home/marcus/projects/lastcraft/tutorial_tests/tests/log_test.php</b> on line <b>44</b><br />
99                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Correct time<br />
100                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testclockadvance->Advancement<br />
237        $clock->setReturnValue('now', 'Timestamp');
238        $log = new Log('../temp/test.log');
239        $log->message('Test line', &$clock);
log.reg https://bitbucket.org/adarshj/convenient_website.git | Unknown | 109 lines
1a:14:{s:8:"provides";a:0:{}s:8:"filelist";a:44:{s:14:"docs/guide.txt";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:41:"/opt/lampp/lib/php/doc/Log/docs/guide.txt";}s:27:"docs/examples/composite.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:54:"/opt/lampp/lib/php/doc/Log/docs/examples/composite.php";}s:25:"docs/examples/console.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:52:"/opt/lampp/lib/php/doc/Log/docs/examples/console.php";}s:25:"docs/examples/display.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:52:"/opt/lampp/lib/php/doc/Log/docs/examples/display.php";}s:27:"docs/examples/error_log.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:54:"/opt/lampp/lib/php/doc/Log/docs/examples/error_log.php";}s:22:"docs/examples/file.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:49:"/opt/lampp/lib/php/doc/Log/docs/examples/file.php";}s:22:"docs/examples/mail.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:49:"/opt/lampp/lib/php/doc/Log/docs/examples/mail.php";}s:22:"docs/examples/null.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:49:"/opt/lampp/lib/php/doc/Log/docs/examples/null.php";}s:31:"docs/examples/observer_mail.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:58:"/opt/lampp/lib/php/doc/Log/docs/examples/observer_mail.php";}s:36:"docs/examples/pear_error_handler.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:63:"/opt/lampp/lib/php/doc/Log/docs/examples/pear_error_handler.php";}s:35:"docs/examples/php_error_handler.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:62:"/opt/lampp/lib/php/doc/Log/docs/examples/php_error_handler.php";}s:21:"docs/examples/sql.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:48:"/opt/lampp/lib/php/doc/Log/docs/examples/sql.php";}s:24:"docs/examples/sqlite.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:51:"/opt/lampp/lib/php/doc/Log/docs/examples/sqlite.php";}s:24:"docs/examples/syslog.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:51:"/opt/lampp/lib/php/doc/Log/docs/examples/syslog.php";}s:21:"docs/examples/win.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:48:"/opt/lampp/lib/php/doc/Log/docs/examples/win.php";}s:17:"Log/composite.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:36:"/opt/lampp/lib/php/Log/composite.php";}s:15:"Log/console.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:34:"/opt/lampp/lib/php/Log/console.php";}s:14:"Log/daemon.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:33:"/opt/lampp/lib/php/Log/daemon.php";}s:15:"Log/display.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:34:"/opt/lampp/lib/php/Log/display.php";}s:17:"Log/error_log.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:36:"/opt/lampp/lib/php/Log/error_log.php";}s:12:"Log/file.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:31:"/opt/lampp/lib/php/Log/file.php";}s:12:"Log/mail.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:31:"/opt/lampp/lib/php/Log/mail.php";}s:12:"Log/mcal.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:31:"/opt/lampp/lib/php/Log/mcal.php";}s:12:"Log/null.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:31:"/opt/lampp/lib/php/Log/null.php";}s:16:"Log/observer.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:35:"/opt/lampp/lib/php/Log/observer.php";}s:11:"Log/sql.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:30:"/opt/lampp/lib/php/Log/sql.php";}s:14:"Log/sqlite.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:33:"/opt/lampp/lib/php/Log/sqlite.php";}s:14:"Log/syslog.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:33:"/opt/lampp/lib/php/Log/syslog.php";}s:11:"Log/win.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:30:"/opt/lampp/lib/php/Log/win.php";}s:12:"misc/log.sql";a:3:{s:4:"role";s:4:"data";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:40:"/opt/lampp/lib/php/data/Log/misc/log.sql";}s:20:"tests/composite.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:48:"/opt/lampp/lib/php/test/Log/tests/composite.phpt";}s:18:"tests/console.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:46:"/opt/lampp/lib/php/test/Log/tests/console.phpt";}s:18:"tests/display.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:46:"/opt/lampp/lib/php/test/Log/tests/display.phpt";}s:20:"tests/error_log.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:48:"/opt/lampp/lib/php/test/Log/tests/error_log.phpt";}s:18:"tests/extract.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:46:"/opt/lampp/lib/php/test/Log/tests/extract.phpt";}s:19:"tests/extract2.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:47:"/opt/lampp/lib/php/test/Log/tests/extract2.phpt";}s:18:"tests/factory.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:46:"/opt/lampp/lib/php/test/Log/tests/factory.phpt";}s:15:"tests/null.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:43:"/opt/lampp/lib/php/test/Log/tests/null.phpt";}s:19:"tests/priority.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:47:"/opt/lampp/lib/php/test/Log/tests/priority.phpt";}s:20:"tests/singleton.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:48:"/opt/lampp/lib/php/test/Log/tests/singleton.phpt";}s:17:"tests/sqlite.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:45:"/opt/lampp/lib/php/test/Log/tests/sqlite.phpt";}s:20:"tests/sql_ident.phpt";a:3:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:48:"/opt/lampp/lib/php/test/Log/tests/sql_ident.phpt";}s:7:"Log.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:12:"installed_as";s:26:"/opt/lampp/lib/php/Log.php";}s:7:"dirtree";a:6:{s:31:"/opt/lampp/lib/php/doc/Log/docs";b:1;s:40:"/opt/lampp/lib/php/doc/Log/docs/examples";b:1;s:22:"/opt/lampp/lib/php/Log";b:1;s:32:"/opt/lampp/lib/php/data/Log/misc";b:1;s:33:"/opt/lampp/lib/php/test/Log/tests";b:1;s:18:"/opt/lampp/lib/php";b:1;}}s:7:"package";s:3:"Log";s:7:"summary";s:17:"Logging utilities";s:11:"description";s:189:"The Log framework provides an abstracted logging system.  It supports logging to console, file, syslog, SQL, Sqlite, mail and mcal targets.  It also provides a subject - observer mechanism.";s:11:"maintainers";a:1:{i:0;a:4:{s:6:"handle";s:3:"jon";s:4:"name";s:10:"Jon Parise";s:5:"email";s:11:"jon@php.net";s:4:"role";s:4:"lead";}}s:7:"version";s:5:"1.8.7";s:12:"release_date";s:10:"2004-12-20";s:15:"release_license";s:11:"PHP License";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:183:"The Log package now supports logging arrays with a 'message' key.
2The 'display' handler now preserves line breaks in its output.
2The 'display' handler now preserves line breaks in its output.
3An experimental new handler ('daemon') has been added.";s:12:"release_deps";a:3:{i:1;a:4:{s:4:"type";s:3:"pkg";s:3:"rel";s:3:"has";s:8:"optional";s:3:"yes";s:4:"name";s:2:"DB";}i:2;a:4:{s:4:"type";s:3:"ext";s:3:"rel";s:3:"has";s:8:"optional";s:3:"yes";s:4:"name";s:6:"sqlite";}i:3;a:4:{s:4:"type";s:3:"php";s:3:"rel";s:2:"ge";s:7:"version";s:5:"4.3.0";s:8:"optional";s:2:"no";}}s:9:"changelog";a:25:{i:0;a:5:{s:7:"version";s:5:"1.8.7";s:12:"release_date";s:10:"2004-12-20";s:15:"release_license";s:11:"PHP License";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:324:"The Log::_extractMessage() routine will now extract and use the value of an array's 'message' key if it exists. (Laurent Laville)
4The 'display' handler now preserves line breaks in its output. (Bug 2606)
4The 'display' handler now preserves line breaks in its output. (Bug 2606)
5An experimental new syslog daemon log handler ('daemon') has been added to the Log distribution. (Bart van der Schans)
6
28
29";}i:5;a:5:{s:7:"version";s:5:"1.8.2";s:12:"release_date";s:10:"2004-01-01";s:15:"release_license";s:11:"PHP License";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:432:"A new 'null' log handler that simply consumes log events has been added.  The 'null' handler will still respect log masks and attached observers.
30
54
55Two new log handers have been added: the 'error_log' handler wraps PHP's native error_log() function; and the 'win' handler outputs log messages to a separate browser window.
56
95";}i:20;a:4:{s:7:"version";s:3:"1.5";s:12:"release_date";s:10:"2002-10-24";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:199:"- Adding the ability to set the mode of the logfile in the Log_file.
96- mail() failures in Log_mail are logged via error_log().
97- Replaced all remaining LOG_* constants with the PEAR_LOG_* versions.
16-Application-Management-Tools.txt https://bitbucket.org/ArnaudD/foulees | Unknown | 697 lines
30
31The location of the PHP log files depends on your `php.ini` configuration. If you never bothered about defining this location, PHP probably uses the logging facilities provided by your web server (such as the Apache error logs). In this case, you will find the PHP logs under the web server log directory.
32
34
35In addition to the standard PHP logs, symfony can log a lot of custom events. You can find all the symfony logs under the `myproject/log/` directory. There is one file per application and per environment. For instance, the development environment log file of the `frontend` application is named `frontend_dev.log`, the production one is named `frontend_prod.log`, and so on.
36
64
65There are eight levels of symfony log messages: `emerg`, `alert`, `crit`, `err`, `warning`, `notice`, `info`, and `debug`, which are the same as the `PEAR::Log` package ([http://pear.php.net/package/Log/](http://pear.php.net/package/Log/)) levels. You can configure the maximum level to be logged in each environment in the `factories.yml` configuration file of each application, as demonstrated in Listing 16-4.
66
110>Symfony's logging system is very simple, yet it is also easy to customize.
111>The only prerequisite is that logger classes must extend the `sfLogger` class, which defines a `doLog()` method. Symfony calls the `doLog()` method with two parameters: `$message` (the message to be logged), and `$priority` (the log level).
112>
141
142For both better performance and security, you probably want to store symfony logs in several small files instead of one single large file. The ideal storage strategy for log files is to back up and empty the main log file regularly, but to keep only a limited number of backups. You can enable such a log rotation with a `period` of `7` days and a `history` (number of backups) of `10`, as shown in Listing 16-7. You would work with one active log file plus ten backup files containing seven days' worth of history each. Whenever the next period of seven days ends, the current active log file goes into backup, and the oldest backup is erased.
143
guide.txt https://bitbucket.org/aradlein/shareplaylists | Unknown | 1,283 lines
27
28.. _Log class: http://cvs.php.net/viewvc.cgi/pear/Log/Log.php
29__ `Custom Handlers`_
449
450    $logger = &Log::singleton('error_log', PEAR_LOG_TYPE_SYSTEM, 'ident');
451    for ($i = 0; $i < 10; $i++) {
812    $logger =& Log::factory('sqlite', 'log_table', 'ident', $conf);
813    $logger->log('logging an event', PEAR_LOG_WARNING);
814
818    $logger =& Log::factory('sqlite', 'log_table', 'ident', $db);
819    $logger->log('logging an event', PEAR_LOG_WARNING);
820    sqlite_close($db);
824------------------
825The Syslog handler sends log events to the system logging service (syslog on
826Unix-like environments or the Event Log on Windows systems).  The events are
16-Application-Management-Tools.markdown https://github.com/marydn/symfony1-docs.git | Unknown | 681 lines
30
31The location of the PHP log files depends on your `php.ini` configuration. If you never bothered about defining this location, PHP probably uses the logging facilities provided by your web server (such as the Apache error logs). In this case, you will find the PHP logs under the web server log directory.
32
34
35In addition to the standard PHP logs, symfony can log a lot of custom events. You can find all the symfony logs under the `myproject/log/` directory. There is one file per application and per environment. For instance, the development environment log file of the `frontend` application is named `frontend_dev.log`, the production one is named `frontend_prod.log`, and so on.
36
112>Symfony's logging system is very simple, yet it is also easy to customize.
113>The only prerequisite is that logger classes must extend the `sfLogger` class, which defines a `doLog()` method. Symfony calls the `doLog()` method with two parameters: `$message` (the message to be logged), and `$priority` (the log level).
114>
143
144For both better performance and security, you probably want to store symfony logs in several small files instead of one single large file. The ideal storage strategy for log files is to back up and empty the main log file regularly, but to keep only a limited number of backups. You can enable such a log rotation with a `period` of `7` days and a `history` (number of backups) of `10`, as shown in Listing 16-7. You would work with one active log file plus ten backup files containing seven days' worth of history each. Whenever the next period of seven days ends, the current active log file goes into backup, and the oldest backup is erased.
145
308>
309>In Xdebug mode, the log messages are much richer. All the PHP script files and the functions that are called are logged, and symfony knows how to link this information with its internal log. Each line of the log messages table has a double-arrow button, which you can click to see further details about the related request. If something goes wrong, the Xdebug mode gives you the maximum amount of detail to find out why.
310
log.md https://github.com/dprotopopov/tritumana.git | Markdown | 308 lines
7
8The classes included in the Log package are `JLog`, `JLogEntry`,
9`JLogger` as well as the classes `JLoggerDatabase`,
9`JLogger` as well as the classes `JLoggerDatabase`,
10`JLoggerEcho`, `JLoggerFormattedText`, `JLoggerMessageQueue`, `JLoggerSyslog`
11and `JLoggerW3C` which support formatting and storage. Of all these
19messages to be logged to the database, but also set just errors to be
20logged to a file. To do this, you use the `JLog::addLogger` method.
21
282// Add the message.
283JLog::add('Database log', JLog::INFO, 'dblog');
284```
303// Add the message.
304JLog::add(json_encode($log), JLog::INFO, 'dblog');
305```
Filter.php https://github.com/humansky/qframe.git | PHP | 501 lines
46
47require_once 'PHPUnit/Util/FilterIterator.php';
48
101        'Log/display.php',
102        'Log/error_log.php',
103        'Log/file.php',
108        'Log/observer.php',
109        'Log/sql.php',
110        'Log/sqlite.php',
110        'Log/sqlite.php',
111        'Log/syslog.php',
112        'Log/win.php',
112        'Log/win.php',
113        'Log.php',
114        'PEAR/Installer/Role/Common.php',
mock_objects_tutorial.xml https://github.com/francois2metz/simpletest.git | XML | 360 lines
64    function testTimestampIsEmittedInMessage() {
65        $log = new Log('../temp/test.log');
66        $log->message('Test line');
81                    <h1>All tests</h1>
82                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 1/] in [Test line 1]<br />
83                    <span class="pass">Pass</span>: log_test.php->Log class test->testappendingtofile->Expecting [/Test line 2/] in [Test line 2]<br />
84                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->Created before message<br />
85                    <span class="pass">Pass</span>: log_test.php->Log class test->testcreatingnewfile->File created<br />
86                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Found timestamp<br />
88                    <b>Notice</b>:  Undefined offset:  1 in <b>/home/marcus/projects/lastcraft/tutorial_tests/tests/log_test.php</b> on line <b>44</b><br />
89                    <span class="fail">Fail</span>: log_test.php->Log class test->testtimestamps->Correct time<br />
90                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testclockadvance->Advancement<br />
231        <strong>$clock->returns('now', 'Timestamp');</strong>
232        $log = new Log('../temp/test.log');
233        $log->message('Test line', $clock);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21