PageRenderTime 251ms queryFilters 0ms Sphinxql 116ms app.CodeModel.GetByIds 84ms findMatchingLines 25ms GetByIds 109ms meta 0ms repositoryFilters 7ms languageFilters 3ms sourceFilters 3ms

179,044 results for 'php log repo:skuda/rsslounge' (251 ms)

Source

Language

Repository

poller-service.py https://gitlab.com/exectek/librenms.git | Python | 307 lines
36
37log = logging.getLogger('poller-service')
38log.setLevel(logging.DEBUG)
40formatter = logging.Formatter('poller-service: %(message)s')
41handler = logging.handlers.SysLogHandler(address='/dev/log')
42handler.setFormatter(formatter)
77except ValueError:
78    loglevel = logging.getLevelName(config['poller_service_loglevel'])
79
80try:
81    log.setLevel(loglevel)
82except ValueError:
82except ValueError:
83    log.warning('ERROR: {0} is not a valid log level. If using python 3.4.0-3.4.1 you must specify loglevel by number'.format(str(loglevel)))
84    log.setLevel(20)
GeokretyConnector.java git://github.com/cgeo/c-geo-opensource.git | Java | 449 lines
353    @Override
354    public AbstractTrackableLoggingManager getTrackableLoggingManager(final AbstractLoggingActivity activity) {
355        return new GeokretyLoggingManager(activity);
370
371    public static ImmutablePair<StatusCode, List<String>> postLogTrackable(final Context context, final Geocache cache, final TrackableLog trackableLog, final Calendar date, final String log) {
372        // See doc: http://geokrety.org/api.php
372        // See doc: http://geokrety.org/api.php
373        Log.d("GeokretyConnector.postLogTrackable: nr=" + trackableLog.trackCode);
374        if (trackableLog.brand != TrackableBrand.GEOKRETY) {
378        if (trackableLog.action == LogTypeTrackable.DO_NOTHING) {
379            Log.d("GeokretyConnector.postLogTrackable: received invalid logtype");
380            return new ImmutablePair<>(StatusCode.LOG_POST_ERROR_GK, Collections.<String> emptyList());
437            }
438            Log.i("Geokrety Log successfully posted to trackable #" + trackableLog.trackCode);
439            return new ImmutablePair<>(StatusCode.NO_ERROR, Collections.<String> emptyList());
development.rst git://github.com/Elgg/Elgg.git | ReStructuredText | 172 lines
18
19The two most popular free IDEs for PHP developers are Eclipse_ and NetBeans_. Eclipse has two different plugins for working with PHP code: PDT_ and PHPEclipse_.
20
27.. _PDT: http://www.eclipse.org/pdt/
28.. _PHPEclipse: http://www.phpeclipse.com/
29
83
84Let's say that you want to find where the *Log In* box code is located. A string from the *Log In* box that should be fairly unique is ``Remember me``. ``Grep`` for that string. You will find that it is only used in the ``en.php`` file in the ``/languages`` directory. There it is used to define the :doc:`/guides/i18n` string ``user:persistent``. ``Grep`` for that string now. You will find it in two places: the same ``en.php`` language file and in ``/views/default/forms/login.php``. The latter defines the html code that makes up the *Log In* box.
85
95
96During the installation process you might have noticed a checkbox that controlled whether debug mode was turned on or off. This setting can also be changed on the Site Administration page. Debug mode writes a lot of extra data to your php log. For example, when running in this mode every query to the database is written to your logs. It may be useful for debugging a problem though it can produce an overwhelming amount of data that may not be related to the problem at all. You may want to experiment with this mode to understand what it does, but make sure you run Elgg in normal mode on a production server.
97
160
161There are many questions asked about how to copy a plugin. Let's say you want to copy the ``blog`` plugin in order to run one plugin called ``blog`` and another called ``poetry``. This is not difficult but it does require a lot of work. You would need to
162
compatibility.php https://bitbucket.org/kristovaher/wave-framework | PHP | 445 lines
71				if(version_compare($phpVersion,'5.3.0')>=0){
72					$log[]='<span class="bold">SUCCESS</span>: PHP is version 5.3.0 or above (running '.$phpVersion.')';
73				} else {
73				} else {
74					$log[]='<span class="bold red"><span class="bold red">FAILURE</span></span>: PHP is running older version than 5.3, Wave Framework has not been tested on older versions of PHP';
75				}
76			} else {
77				$log[]='<span class="bold orange">WARNING</span>: Unable to detect PHP version number, Wave Framework requires PHP version 5.3 or above';
78			}
83			} else {
84				$log[]='<span class="bold orange">WARNING</span>: PHP setting short_open_tag is turned off, default View controller requires this to work properly, if this is not possible then edit /controllers/controller.view.php and example view files in /views/ folder';
85			}
353			} else {
354				$log[]='<span class="bold orange">WARNING</span>: /filesystem/logs/ is not writable, this warning can be ignored if performance logging is not used by Index Gateway';
355			}
autoloader.class.php https://bitbucket.org/ywarnier/chamilo-dev | PHP | 482 lines
106         'PclzipFilecompression' => '/filecompression/pclzip/pclzip_filecompression.class.php',
107         'FileLogger' => '/filesystem/file_logger.class.php',
108         'FileProperties' => '/filesystem/file_properties.class.php',
292         'OnlineLog' => '/ims/chamilo/log.class.php',
293         'EmptyLog' => '/ims/chamilo/log.class.php',
294         'ObjectCache' => '/ims/chamilo/object_cache.class.php',
362         'DefaultMail' => '/mail/default/default_mail.class.php',
363         'PhpmailerMail' => '/mail/phpmailer/phpmailer_mail.class.php',
364         'MimeUtil' => '/mime/mime_util.class.php',
422         'data_class_generator\DataClassGenerator' => '/util/data_class_generator/data_class_generator/data_class_generator.class.php',
423         'application\discovery\module\profile\implementation\bamaflex\PreviousCollege' => '/util/data_class_generator/xml_schemas/php/application/discovery/module/profile/implementation/bamaflex/php/lib/previous_college.class.php',
424         'application\discovery\module\profile\implementation\bamaflex\PreviousUniversity' => '/util/data_class_generator/xml_schemas/php/application/discovery/module/profile/implementation/bamaflex/php/lib/previous_university.class.php',
424         'application\discovery\module\profile\implementation\bamaflex\PreviousUniversity' => '/util/data_class_generator/xml_schemas/php/application/discovery/module/profile/implementation/bamaflex/php/lib/previous_university.class.php',
425         'application\elude\MatterhornRightsLocationEntityRight' => '/util/data_class_generator/xml_schemas/php/application/elude/php/lib/matterhorn_rights_location_entity_right.class.php',
426         'RssIconGenerator' => '/util/rss_icon_generator/rss_icon_generator.class.php',
mock_objects_tutorial.xml https://bitbucket.org/bpanulla/simpletest | 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 https://bitbucket.org/bpanulla/simpletest | XML | 376 lines
67    function testTimestampIsEmittedInMessage() {
68        $log = new Log('../temp/test.log');
69        $log->message('Test line');
86                    <span class="pass">Pass</span>: log_test.php->Log class test->testAppendingToFile->Expecting [/Test line 1/] in [Test line 1]<br />
87                    <span class="pass">Pass</span>: log_test.php->Log class test->testAppendingToFile->Expecting [/Test line 2/] in [Test line 2]<br />
88                    <span class="pass">Pass</span>: log_test.php->Log class test->testCreatingNewFile->Created before message<br />
88                    <span class="pass">Pass</span>: log_test.php->Log class test->testCreatingNewFile->Created before message<br />
89                    <span class="pass">Pass</span>: log_test.php->Log class test->testCreatingNewFile->File created<br />
90                    <span class="fail">Fail</span>: log_test.php->Log class test->testTimestampIsEmittedInMessage->Found timestamp<br />
92                    <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 />
93                    <span class="fail">Fail</span>: log_test.php->Log class test->testTimestampIsEmittedInMessage->Correct time<br />
94                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testClockAdvance->Advancement<br />
235        <strong>$clock->returns('now', 'Timestamp');</strong>
236        $log = new Log('../temp/test.log');
237        $log->message('Test line', $clock);
mock_objects_tutorial.xml https://bitbucket.org/bpanulla/simpletest | XML | 352 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 />
227        $clock->returns('now', 'Timestamp');
228        $log = new Log('../temp/test.log');
229        $log->message('Test line', &$clock);
mock_objects_tutorial.xml https://bitbucket.org/bpanulla/simpletest | 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 https://bitbucket.org/bpanulla/simpletest | 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 https://bitbucket.org/bpanulla/simpletest | XML | 376 lines
67    function testTimestampIsEmittedInMessage() {
68        $log = new Log('../temp/test.log');
69        $log->message('Test line');
86                    <span class="pass">Pass</span>: log_test.php->Log class test->testAppendingToFile->Expecting [/Test line 1/] in [Test line 1]<br />
87                    <span class="pass">Pass</span>: log_test.php->Log class test->testAppendingToFile->Expecting [/Test line 2/] in [Test line 2]<br />
88                    <span class="pass">Pass</span>: log_test.php->Log class test->testCreatingNewFile->Created before message<br />
88                    <span class="pass">Pass</span>: log_test.php->Log class test->testCreatingNewFile->Created before message<br />
89                    <span class="pass">Pass</span>: log_test.php->Log class test->testCreatingNewFile->File created<br />
90                    <span class="fail">Fail</span>: log_test.php->Log class test->testTimestampIsEmittedInMessage->Found timestamp<br />
92                    <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 />
93                    <span class="fail">Fail</span>: log_test.php->Log class test->testTimestampIsEmittedInMessage->Correct time<br />
94                    <span class="pass">Pass</span>: clock_test.php->Clock class test->testClockAdvance->Advancement<br />
235        <strong>$clock->returns('now', 'Timestamp');</strong>
236        $log = new Log('../temp/test.log');
237        $log->message('Test line', $clock);
mock_objects_tutorial.xml https://bitbucket.org/bpanulla/simpletest | XML | 352 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 />
227        $clock->returns('now', 'Timestamp');
228        $log = new Log('../temp/test.log');
229        $log->message('Test line', &$clock);
16-Application-Management-Tools.txt https://github.com/mustdo/www.git | Plain Text | 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
63
64There 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.
65
109>Symfony's logging system is very simple, yet it is also easy to customize.
110>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).
111>
140
141For 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.
142
controllerData.js https://gitlab.com/webservers/codeigniter_mobile_dev_server.git | JavaScript | 1,022 lines
197//
198//	jsonLogsBySessionsActivity()	localhost/BMTmobile/index.php/base/jsonLogsBySessionsActivity
199//	:error  LogsFromInactiveSession base.php line 564
361/*
362	log()							localhost/BMTmobile/index.php/base/log?message=""&session_id=""&data=""	
363	{"success":false,
384
385//	getLogs()						localhost/BMTmobile/index.php/base/getLogs
386//	: {"logs":null}		//return json object with logs for 'session_id' if specified
424/*
425	login()							localhost/BMTmobile/index.php/base/login?name="user"&password="007157"	
426	:{"success":false,
440/*
441	logout()						localhost/BMTmobile/index.php/base/logout
442	: login HTML screen
controllerData.js https://gitlab.com/webservers/codeigniter_mobile_dev_server.git | JavaScript | 1,058 lines
198//
199//	jsonLogsBySessionsActivity()	localhost/BMTmobile/index.php/base/jsonLogsBySessionsActivity
200//	:error  LogsFromInactiveSession base.php line 564
362/*
363	log()							localhost/BMTmobile/index.php/base/log?message=""&session_id=""&data=""	
364	{"success":false,
385
386//	getLogs()						localhost/BMTmobile/index.php/base/getLogs
387//	: {"logs":null}		//return json object with logs for 'session_id' if specified
425/*
426	login()							localhost/BMTmobile/index.php/base/login?name="user"&password="007157"	
427	:{"success":false,
441/*
442	logout()						localhost/BMTmobile/index.php/base/logout
443	: login HTML screen
16-Application-Management-Tools.txt https://github.com/habtom/uas.git | Plain Text | 698 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.txt https://github.com/soon0009/EMS.git | Plain Text | 581 lines
32
33The 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.
34
36
37In 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 `myapp` application is named `myapp_dev.log`, the production one is named `myapp_prod.log`, and so on.
38
55
56There 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 `logging.yml` configuration file of each application, as demonstrated in Listing 16-3.
57
113>
114>Symfony's logging system is very simple, yet it is also easy to customize. You can specify your own logging object by calling `sfLogger::getInstance()->registerLogger()`. For instance, if you want to use `PEAR::Log`, just add the following to your application's `config.php`:
115>
128
129For 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 and specify the parameters in `logging.yml`. For instance, with a `period` of `7` days and a `history` (number of backups) of `10`, as shown in Listing 16-6, 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.
130
16-Application-Management-Tools.txt https://github.com/broschb/cyclebrain.git | Plain Text | 698 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
mfabrik-blog.html https://github.com/aaitxcoder/mobilize.js.git | HTML | 1,094 lines
179													<span class="tag-links">
180						<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://blog.mfabrik.com/tag/all-files/" rel="tag">all files</a>, <a href="http://blog.mfabrik.com/tag/cyberduck/" rel="tag">cyberduck</a>, <a href="http://blog.mfabrik.com/tag/doc/" rel="tag">doc</a>, <a href="http://blog.mfabrik.com/tag/download/" rel="tag">download</a>, <a href="http://blog.mfabrik.com/tag/drag-and-drop/" rel="tag">drag and drop</a>, <a href="http://blog.mfabrik.com/tag/export/" rel="tag">export</a>, <a href="http://blog.mfabrik.com/tag/import/" rel="tag">import</a>, <a href="http://blog.mfabrik.com/tag/mass-upload/" rel="tag">mass upload</a>, <a href="http://blog.mfabrik.com/tag/osx/" rel="tag">osx</a>, <a href="http://blog.mfabrik.com/tag/pdf/" rel="tag">pdf</a>, <a href="http://blog.mfabrik.com/tag/photos/" rel="tag">photos</a>, <a href="http://blog.mfabrik.com/tag/plone/" rel="tag">plone</a>, <a href="http://blog.mfabrik.com/tag/webdav/" rel="tag">webdav</a>					</span>
181					<span class="meta-sep">|</span>
277													<span class="tag-links">
278						<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://blog.mfabrik.com/tag/apache/" rel="tag">apache</a>, <a href="http://blog.mfabrik.com/tag/error_log/" rel="tag">error_log</a>, <a href="http://blog.mfabrik.com/tag/osx/" rel="tag">osx</a>, <a href="http://blog.mfabrik.com/tag/php/" rel="tag">php</a>, <a href="http://blog.mfabrik.com/tag/php-ini/" rel="tag">php.ini</a>, <a href="http://blog.mfabrik.com/tag/tail/" rel="tag">tail</a>, <a href="http://blog.mfabrik.com/tag/xampp/" rel="tag">xampp</a>					</span>
279					<span class="meta-sep">|</span>
367													<span class="tag-links">
368						<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://blog.mfabrik.com/tag/chrome/" rel="tag">chrome</a>, <a href="http://blog.mfabrik.com/tag/commit-hook/" rel="tag">commit hook</a>, <a href="http://blog.mfabrik.com/tag/compress/" rel="tag">compress</a>, <a href="http://blog.mfabrik.com/tag/console/" rel="tag">console</a>, <a href="http://blog.mfabrik.com/tag/firefox/" rel="tag">firefox</a>, <a href="http://blog.mfabrik.com/tag/git/" rel="tag">git</a>, <a href="http://blog.mfabrik.com/tag/github/" rel="tag">github</a>, <a href="http://blog.mfabrik.com/tag/ie/" rel="tag">ie</a>, <a href="http://blog.mfabrik.com/tag/internet-explorer/" rel="tag">internet explorer</a>, <a href="http://blog.mfabrik.com/tag/javascript/" rel="tag">javascript</a>, <a href="http://blog.mfabrik.com/tag/jquery/" rel="tag">jquery</a>, <a href="http://blog.mfabrik.com/tag/plone/" rel="tag">plone</a>, <a href="http://blog.mfabrik.com/tag/preprocessor/" rel="tag">preprocessor</a>, <a href="http://blog.mfabrik.com/tag/python/" rel="tag">python</a>, <a href="http://blog.mfabrik.com/tag/safari/" rel="tag">safari</a>, <a href="http://blog.mfabrik.com/tag/webkit/" rel="tag">webkit</a>					</span>
369					<span class="meta-sep">|</span>
517													<span class="tag-links">
518						<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://blog.mfabrik.com/tag/always-on/" rel="tag">always on</a>, <a href="http://blog.mfabrik.com/tag/appengine/" rel="tag">appengine</a>, <a href="http://blog.mfabrik.com/tag/cloud/" rel="tag">cloud</a>, <a href="http://blog.mfabrik.com/tag/cloud-computing/" rel="tag">cloud computing</a>, <a href="http://blog.mfabrik.com/tag/cron/" rel="tag">cron</a>, <a href="http://blog.mfabrik.com/tag/deadlineexceedederror/" rel="tag">DeadlineExceededError</a>, <a href="http://blog.mfabrik.com/tag/dynamic/" rel="tag">dynamic</a>, <a href="http://blog.mfabrik.com/tag/gaeutilities/" rel="tag">gaeutilities</a>, <a href="http://blog.mfabrik.com/tag/google/" rel="tag">google</a>, <a href="http://blog.mfabrik.com/tag/http-requiest/" rel="tag">http requiest</a>, <a href="http://blog.mfabrik.com/tag/instance/" rel="tag">instance</a>, <a href="http://blog.mfabrik.com/tag/monitoring/" rel="tag">monitoring</a>, <a href="http://blog.mfabrik.com/tag/new-process/" rel="tag">new process</a>, <a href="http://blog.mfabrik.com/tag/php/" rel="tag">php</a>, <a href="http://blog.mfabrik.com/tag/python/" rel="tag">python</a>, <a href="http://blog.mfabrik.com/tag/response-time/" rel="tag">response time</a>, <a href="http://blog.mfabrik.com/tag/zabbix/" rel="tag">zabbix</a>					</span>
519					<span class="meta-sep">|</span>
979													<span class="tag-links">
980						<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://blog.mfabrik.com/tag/crawl/" rel="tag">crawl</a>, <a href="http://blog.mfabrik.com/tag/find/" rel="tag">find</a>, <a href="http://blog.mfabrik.com/tag/follow/" rel="tag">follow</a>, <a href="http://blog.mfabrik.com/tag/full-text/" rel="tag">full text</a>, <a href="http://blog.mfabrik.com/tag/full-text-search/" rel="tag">full text search</a>, <a href="http://blog.mfabrik.com/tag/pdf/" rel="tag">pdf</a>, <a href="http://blog.mfabrik.com/tag/pypdf/" rel="tag">pypdf</a>, <a href="http://blog.mfabrik.com/tag/python/" rel="tag">python</a>, <a href="http://blog.mfabrik.com/tag/scrape/" rel="tag">scrape</a>, <a href="http://blog.mfabrik.com/tag/scrapy/" rel="tag">scrapy</a>, <a href="http://blog.mfabrik.com/tag/search/" rel="tag">search</a>, <a href="http://blog.mfabrik.com/tag/trademark/" rel="tag">trademark</a>, <a href="http://blog.mfabrik.com/tag/user-policy/" rel="tag">user policy</a>, <a href="http://blog.mfabrik.com/tag/violation/" rel="tag">violation</a>, <a href="http://blog.mfabrik.com/tag/web-crawler/" rel="tag">web crawler</a>					</span>
981					<span class="meta-sep">|</span>
Exceptions.class.php http://mortar.googlecode.com/svn/trunk/ | PHP | 409 lines
91	 * errorLevel argument. Various error configuration values are extracted from the php runtime, such as the error
92	 * reporting and logging values, and if it's appropriate the exception is displayed or sent to the php logger.
93	 *
115		$log_error = ini_get('log_errors');
116		$log_error = (strtolower($log_error) == 'on' || $log_error == true);
117
154	/**
155	 * Logs the passed string using the php error logging functions. Anything passed here will end up in the PHP log,
156	 * whether that log is run by file, syslog, or anything else.
162	{
163		$logString = str_replace(PHP_EOL, ' ', $logString);
164		$program = defined('PROGRAM') ? '*' . PROGRAM . '*  ' : '';
377 * This class corresponds to the E_USER_DEPRECATED error level in php, meaning that when E_USER_DEPRECATED is enabled by
378 * php (whether by the php.ini file or a runtime configuration change) then it will check to see if error logging or
379 * displaying are also activated, and if so will take the appropriate action.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21