PageRenderTime 591ms queryFilters 0ms Sphinxql 124ms app.CodeModel.GetByIds 381ms findMatchingLines 57ms GetByIds 438ms meta 0ms repositoryFilters 11ms languageFilters 12ms sourceFilters 5ms

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

Source

Language

Repository

lang_php.py https://github.com/MinerCrafter/SublimeCodeIntel.git | Python | 3,310 lines
86lang = "PHP"
87log = logging.getLogger("codeintel.php")
88#log.setLevel(logging.DEBUG)
933                if d.strip()]
934        for exe_name in ("php", "php4", "php-cgi", "php-cli"):
935            try:
940
941    def _php_info_from_php(self, php, env):
942        """Call the given PHP and return:
1054                php_ver, include_path \
1055                    = self._php_info_from_php(php, env)
1056                
2288                          name, vartype)
2289                phpVariable.addType(self.lineno, vartype, fromPHPDoc=fromPHPDoc)
2290        return phpVariable
nanoweb.conf https://bitbucket.org/detroitpro/taphp | Unknown | 228 lines
88# dependant (CGI takes path to CGI program, FCGI to FastCGI server socket)
89# Note: For PHP CGI, you must specify the path of your php CGI binary, not 
90# the CLI interpreter.
94ParseExt          = php3 CGI /usr/local/bin/php-cgi
95ParseExt          = php4 CGI /usr/local/bin/php-cgi
96#ParseExt          = asis asis
177
178# Server logs definitions. Syntax is "ServerLog = logfile logmodes".
179# Available modes are : debug, hit, notice, warning, error, all and default
183#ServerLog         = /var/log/nanoweb/server.blocking blocking
184ServerLog         = /var/log/nanoweb/server.log default
185ServerLog         = /var/log/nanoweb/server.error warning+error
200
201# LogDir let you specify the directory where nanoweb will write its log files
202LogDir            = /var/log/nanoweb
sae.class.php https://github.com/ueffort/fn-php.git | PHP | 579 lines
78			case 'log':
79				//http://developer.baidu.com/wiki/index.php?title=docs/cplat/rt/php/log
80				if(!$this->isCloudSelf()) return false;
83				//打印一条警告日志,包括日志级别和日志内容
84				$logger ->logWrite(2, "this is for warning log print ");
85				//打印一条轨迹日志
85				//打印一条轨迹日志
86				$logger ->logTrace("this is for trace log print ");
87				//打印一条通知日志
87				//打印一条通知日志
88				$logger ->logNotice("this is for notice log print ");
89				//打印一条调试日志
91				//打印一条警告日志
92				$logger ->logWarning("this is for warning log print ");
93				//打印一条致命日志
bae.class.php https://github.com/ueffort/fn-php.git | PHP | 575 lines
73			case 'log':
74				//http://developer.baidu.com/wiki/index.php?title=docs/cplat/rt/php/log
75				if(!$this->isCloudSelf()) return false;
78				//打印一条警告日志,包括日志级别和日志内容
79				$logger ->logWrite(2, "this is for warning log print ");
80				//打印一条轨迹日志
80				//打印一条轨迹日志
81				$logger ->logTrace("this is for trace log print ");
82				//打印一条通知日志
82				//打印一条通知日志
83				$logger ->logNotice("this is for notice log print ");
84				//打印一条调试日志
86				//打印一条警告日志
87				$logger ->logWarning("this is for warning log print ");
88				//打印一条致命日志
README.md https://github.com/edlerd/apache2gelf.git | Unknown | 68 lines
6* custom (but quite close to standard 'combined') Apache access log (accesslog2gelf.py);
7* standard PHP error log (phplog2gelf.py).
8
23      CustomLog "|| /path/to/accesslog2gelf.py --vhost example.com" "%V %h %u \"%r\" %>s %b \"%{Referer}i\""
24      php_admin_value error_log "/var/log/php/example.com.php.log"
25    </VirtualHost>
28
29    /path/to/phplog2gelf.py --vhost example.com /var/log/php/example.com.php.log
30
52
53This script is somewhat different from the previous two. Because there is no way to get log messages from php via pipe, we have to 'tail -F' the log file. The script supports multiline PHP error log messages as well.
54
57    check process phplog2gelf_example with pidfile /var/run/phplog2gelf_example.pid
58        start program = "/sbin/start-stop-daemon --start --pidfile /var/run/phplog2gelf_example.pid --user www-data --chuid www-data --background --make-pidfile --exec /usr/local/sbin/phplog2gelf.py -- --vhost example.com /var/log/php/example.com.php.log"
59        stop program = "/sbin/start-stop-daemon --stop --pidfile /var/run/phplog2gelf_example.pid --verbose"
README.md https://github.com/iggy/apache2gelf.git | Unknown | 68 lines
6* custom (but quite close to standard 'combined') Apache access log (accesslog2gelf.py);
7* standard PHP error log (phplog2gelf.py).
8
23      CustomLog "|| /path/to/accesslog2gelf.py --vhost example.com" "%V %h %u \"%r\" %>s %b \"%{Referer}i\""
24      php_admin_value error_log "/var/log/php/example.com.php.log"
25    </VirtualHost>
28
29    /path/to/phplog2gelf.py --vhost example.com /var/log/php/example.com.php.log
30
52
53This script is somewhat different from the previous two. Because there is no way to get log messages from php via pipe, we have to 'tail -F' the log file. The script supports multiline PHP error log messages as well.
54
57    check process phplog2gelf_example with pidfile /var/run/phplog2gelf_example.pid
58        start program = "/sbin/start-stop-daemon --start --pidfile /var/run/phplog2gelf_example.pid --user www-data --chuid www-data --background --make-pidfile --exec /usr/local/sbin/phplog2gelf.py -- --vhost example.com /var/log/php/example.com.php.log"
59        stop program = "/sbin/start-stop-daemon --stop --pidfile /var/run/phplog2gelf_example.pid --verbose"
wplogger.php https://bitbucket.org/acipriani/madeinapulia.com | PHP | 309 lines
7 Plugin Name: Wordpress Logger
8 Plugin URI: http://www.turingtarpit.com/2009/05/wordpress-logger-a-plugin-to-display-php-log-messages-in-safari-and-firefox/
9 Description: Displays log messages in the browser console in Safari, Firefox and Opera. Useful for plugin and theme developers to debug PHP code.
40	 
41	 	message_type can be: WPLOG_ERR. WPLOG_WARNING, WPLOG_INFO, WPLOG_DEBUG
42	 	
43	 Example:
44	 	if ($wplogger) $wplogger->log( get_option('active_plugins') );
45	 	
47	 	[Information: from line xxx in file somefile.php] array (
48		  0 => 'wplogger/wplogger.php',
49		  1 => '12seconds-widget/12seconds-widget.php',
156	 * @param const $msgType[optional] type of message. Valid values are:
157	 * 					WPLOG_ERR. WPLOG_WARNING, WPLOG_INFO, WPLOG_DEBUG
158	 */
TestOfFoursquarePluginConfigurationController.php https://github.com/ShadMickelberry/ThinkUp.git | PHP | 527 lines
1<?php
2/**
27 */
28require_once dirname(__FILE__) . '/../../../../tests/init.tests.php';
29require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php';
29require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php';
30require_once THINKUP_ROOT_PATH.'webapp/config.inc.php';
31require_once THINKUP_ROOT_PATH.'tests/classes/class.ThinkUpBasicUnitTestCase.php';
31require_once THINKUP_ROOT_PATH.'tests/classes/class.ThinkUpBasicUnitTestCase.php';
32require_once THINKUP_ROOT_PATH.'webapp/plugins/foursquare/controller/class.FoursquarePluginConfigurationController.php';
33require_once THINKUP_ROOT_PATH.'webapp/plugins/foursquare/model/class.FoursquareCrawler.php';
33require_once THINKUP_ROOT_PATH.'webapp/plugins/foursquare/model/class.FoursquareCrawler.php';
34require_once THINKUP_ROOT_PATH.'webapp/plugins/foursquare/model/class.FoursquarePlugin.php';
35// Handle API queries locally
129        $this->assertEqual('You must <a href="'.$config->getValue('site_root_path').
130        'session/login.php">log in</a> to do this.', $v_mgr->getTemplateDataItem('error_msg'));
131
post-thumbnail-editor-it_IT.po https://github.com/pica-design/nextstepmaine.git | Portable Object | 331 lines
112
113#: php/log.php:15
114msgid "ERROR"
116
117#: php/log.php:18
118msgid "WARNING"
120
121#: php/log.php:21
122msgid "DEBUG"
124
125#: php/log.php:101
126msgid "ERROR Logging Message: %s"
148
149#: php/options.php:63
150msgid "Save Changes"
eventsunmerged.txt https://github.com/gkipkorir/public_html.git | text | 488 lines
82
83//if session user is set (from logging in), show link to create event and log out
84if(isset($_SESSION['User'])){
106 
107        echo "<a href='./logout.php'>Don't forget to logout</a><br>";
108}
110        $_SESSION['User'] = null;
111        echo "<a href='./login.php'>Log In</a></br>";
112        echo "<a href='./CreateUser.php'>Create User</a></br>";
201		}
202	    echo "<a href='./logout.php'>Don't forget to logout</a><br>";
203	}
206	    $_SESSION['User'] = null;
207	    echo "<a href='./login.php'>Log In</a></br>";
208	    echo "<a href='./CreateUser.php'>Create User</a></br>";
README.md https://github.com/xiongchiamiov/IMathAS.git | Markdown | 355 lines
203
204  6. Edit loginpage.php and infoheader.php if desired. If you plan to use the
205new instructor account request page, edit newinstructor.php
274
275    * infoheader.php.dist to infoheader.php
276
276
277    * loginpage.php.dist to loginpage.php
278
278
279    * newinstructor.php.dist to newinstructor.php
280
315
316    * $smallheaderlogo: Text or an HTML image tag for a small (120 x 80) logo
317to display at the top right of course pages
history_api.php https://github.com/Kirill/mantisbt.git | PHP | 608 lines
1<?php
2# MantisBT - A PHP based bugtracking system
25 *
26 * @uses access_api.php
27 * @uses authentication_api.php
27 * @uses authentication_api.php
28 * @uses bug_api.php
29 * @uses bug_revision_api.php
29 * @uses bug_revision_api.php
30 * @uses bugnote_api.php
31 * @uses columns_api.php
31 * @uses columns_api.php
32 * @uses config_api.php
33 * @uses constant_inc.php
33 * @uses constant_inc.php
34 * @uses custom_field_api.php
35 * @uses database_api.php
history_api.php https://github.com/markkimsal/mantisbt.git | PHP | 592 lines
1<?php
2# MantisBT - A PHP based bugtracking system
25 *
26 * @uses access_api.php
27 * @uses authentication_api.php
27 * @uses authentication_api.php
28 * @uses bug_api.php
29 * @uses bug_revision_api.php
29 * @uses bug_revision_api.php
30 * @uses bugnote_api.php
31 * @uses columns_api.php
31 * @uses columns_api.php
32 * @uses config_api.php
33 * @uses constant_inc.php
33 * @uses constant_inc.php
34 * @uses custom_field_api.php
35 * @uses database_api.php
errors.inc git://github.com/drupal/drupal.git | Pascal | 327 lines
9use Drupal\Component\Utility\Xss;
10use Drupal\Core\Logger\RfcLogLevel;
11use Drupal\Core\Render\Markup;
18 * The error constants are documented at
19 * http://php.net/manual/errorfunc.constants.php
20 *
166    try {
167      \Drupal::logger('php')->log($error['severity_level'], '%type: @message in %function (line %line of %file) @backtrace_string.', $error);
168    }
170      // We can't log, for example because the database connection is not
171      // available. At least try to log to PHP error log.
172      error_log(strtr('Failed to log error: %type: @message in %function (line %line of %file). @backtrace_string', $error));
318  catch (\Exception $e) {
319    $error_level = isset($GLOBALS['config']['system.logging']['error_level']) ? $GLOBALS['config']['system.logging']['error_level'] : ERROR_REPORTING_HIDE;
320  }
README.md https://gitlab.com/lcp0578/SeasLog.git | Markdown | 580 lines
37### 为什么使用SeasLog
38log日志,通常是系统或软件、应用的运行记录。通过log的分析,可以方便用户了解系统或软件、应用的运行情况;如果你的应用log足够丰富,也可以分析以往用户的操作行为、类型喜好、地域分布或其他更多信息;如果一个应用的log同时也分了多个级别,那么可以很轻易地分析得到该应用的健康状况,及时发现问题并快速定位、解决问题,补救损失。
39
39
40php内置error_log、syslog函数功能强大且性能极好,但由于各种缺陷(error_log无错误级别、无固定格式,syslog不分模块、与系统日志混合),灵活度降低了很多,不能满足应用需求。
41
41
42好消息是,有不少第三方的log类库弥补了上述缺陷,如log4php、plog、Analog等(当然也有很多应用在项目中自己开发的log类)。其中以[log4php](http://logging.apache.org/log4php/)最为著名,设计精良、格式完美、文档完善、功能强大。推荐。
43
44不过log4php在性能方面表现非常差,下图是SeasLoglog4php的ab并发性能测试( 测试环境:Ubuntu12.04单机,CPU I3,内存 16G,硬盘 SATA 7200):
45![SeasLogVSlog4php](https://raw.githubusercontent.com/Neeke/SeasLog/master/tests/SeasLogVSlog4php.png)
46
374
375> 直接使用 `SeasLog::getLastLogger()`,将获取php.ini(seaslog.ini)中设置的 `seaslog.default_logger` 的值。
376
config-defaults.php https://gitlab.com/mahara/mahara.git | PHP | 854 lines
88$cfg->log_warn_targets    = LOG_TARGET_ERRORLOG;
89$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
90/**
94//$cfg->log_dbg_targets     = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
95//$cfg->log_info_targets    = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
96//$cfg->log_warn_targets    = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
96//$cfg->log_warn_targets    = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
97//$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
98
131 * NOTE: There are some limitations in this method, because it doesn't get called until several scripts
132 * have already been compiled: init.php, config.php, config-defaults.php, errors.php, and the file directly
133 * invoked in the URL. So, compile-time errors in those files (which includes most strict errors) will be
561 * This is useful for e.g. Google Analytics. If you need to enter a multi-line snippet, it may be best
562 * to use a PHP nowdoc: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.nowdoc
563 */
site.py https://gitlab.com/Symons/easyengine.git | Python | 1,564 lines
70            updateSiteInfo(self, ee_domain, enabled=True)
71            Log.info(self, "[" + Log.ENDC + "OK" + Log.OKBLUE + "]")
72            if not EEService.reload_service(self, 'nginx'):
143            ee_site_webroot = siteinfo.site_path
144            access_log = (ee_site_webroot + '/logs/access.log')
145            error_log = (ee_site_webroot + '/logs/error.log')
159            data = dict(domain=ee_domain, webroot=ee_site_webroot,
160                        accesslog=access_log, errorlog=error_log,
161                        dbname=ee_db_name, dbuser=ee_db_user,
703                for msg in ee_auth:
704                    Log.info(self, Log.ENDC + msg, log=False)
705
800                    pargs.site_name = site.sitename
801                    Log.info(self, Log.ENDC + Log.BOLD + "Updating site {0},"
802                             " please wait..."
config.rst git://github.com/phpmyadmin/phpmyadmin.git | ReStructuredText | 3,642 lines
100    ``auto``
101        Let phpMyAdmin automatically choose between ``syslog`` and ``php``.
102    ``syslog``
105    ``php``
106        Log into PHP error log.
107    ``sapi``
107    ``sapi``
108        Log into PHP SAPI logging.
109    ``/path/to/file``
612    * 'signon' authentication mode (``$auth_type = 'signon'``) allows you to
613      log in from prepared PHP session data or using supplied PHP script.
614
1798
1799    Define how long a login cookie is valid. Please note that php
1800    configuration option `session.gc\_maxlifetime
Filter.php https://github.com/nevali/shindig.git | PHP | 550 lines
46
47require_once 'PHPUnit/Util/FilterIterator.php';
48
108        'Log/display.php',
109        'Log/error_log.php',
110        'Log/file.php',
115        'Log/observer.php',
116        'Log/sql.php',
117        'Log/sqlite.php',
117        'Log/sqlite.php',
118        'Log/syslog.php',
119        'Log/win.php',
119        'Log/win.php',
120        'Log.php',
121        'PEAR/Installer/Role/Common.php',
ConnectorUtils.php https://github.com/nerdystudmuffin/dashlet-subpanels.git | PHP | 779 lines
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
175	    if(!write_array_to_file('viewdefs', $view_defs, 'custom/modules/Connectors/metadata/mergeviewdefs.php')) {
176	       $GLOBALS['log']->fatal("Cannot write file custom/modules/Connectors/metadata/mergeviewdefs.php");
177	       return array();	
332 * updateMetaDataFiles
333 * This method updates the metadata files (detailviewdefs.php) according to the settings in display_config.php
334 * @return $result boolean value indicating whether or not the method successfully completed.
341          foreach($modules_sources as $module=>$mapping) {
342          	     $metadata_file = file_exists("custom/modules/{$module}/metadata/detailviewdefs.php") ? "custom/modules/{$module}/metadata/detailviewdefs.php" : "modules/{$module}/metadata/detailviewdefs.php"; 
343          	     require($metadata_file);
434		         if(!write_array_to_file('viewdefs', $viewdefs,  "custom/modules/{$module}/metadata/detailviewdefs.php")) {
435		     	    $GLOBALS['log']->fatal("Cannot update file custom/modules/{$module}/metadata/detailviewdefs.php");
436		   	        return false;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21