PageRenderTime 1529ms queryFilters 0ms Sphinxql 654ms GetByIds 496ms meta 0ms repositoryFilters 102ms languageFilters 99ms sourceFilters 88ms

188,587 results for 'php log repo:chrispiechowicz/zepto' (1529 ms)

Source

Language

Repository

file.php http://hppg.googlecode.com/svn/trunk/ | PHP | 325 lines
2/**
3 * $Header: /home/ppcvs/paypal_php_sdk/Log/file.php,v 1.1 2006/02/19 08:22:29 dennis Exp $
4 *
9/**
10 * The Log_file class is a concrete implementation of the Log abstract
11 * class that logs messages to a text file.
269     * Logs $message to the output window.  The message is also passed along
270     * to any Log_observer instances that are observing this Log.
271     *
274     *                  values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
275     *                  PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
276     *                  PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
309
310        /* Write the log line to the log file. */
311        $success = (fwrite($this->_fp, $line) !== false);
SQLFunctionTest.class.php git://github.com/xp-framework/xp-framework.git | PHP | 395 lines
201      'datename(hour, getdate())',
202      'php(\'strval\', php(\'idate\', "H", php(\'strtotime\', php(\'date\', \'Y-m-d H:i:s\', php(\'time\')))))',
203      create(new \rdbms\Criteria())->setProjection(SQLFunctions::datename('hour', SQLFunctions::getdate()))
247      'log10(power(10, 5))',
248      'php(\'log10\', php(\'pow\', 10, 5))',
249      create(new \rdbms\Criteria())->setProjection(SQLFunctions::log10(SQLFunctions::power(10, 5)))
254      'power(10, log10(5))',
255      'php(\'pow\', 10, php(\'log10\', 5))',
256      create(new \rdbms\Criteria())->setProjection(SQLFunctions::power(10, SQLFunctions::log10(5)))
261      'round(1.5, 0) as "roundtest1", round(1.49, 0) as "roundtest2", round(1.49, 1) as "roundtest3"',
262      'php(\'round\', 1.5, 0) as \'roundtest1\', php(\'round\', 1.49, 0) as \'roundtest2\', php(\'round\', 1.49, 1) as \'roundtest3\'',
263      create(new \rdbms\Criteria())->setProjection(\rdbms\criterion\Projections::ProjectionList()
383      'where job_id = ceil(asin(sin(0.125)))',
384      'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))',
385      create(new \rdbms\Criteria())->add(Restrictions::equal('job_id', SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125)))))
config.php git://pkgs.fedoraproject.org/ser | PHP | 380 lines
2/*
3 * $Id: config.php,v 1.18.2.4 2005/06/27 09:15:35 kozlik Exp $
4 */
150	/* When you enable loging be sure if you have instaleld PEAR package
151	   Log. See http://pear.php.net/manual/en/installation.getting.php 
152	   for more information
155	$config->enable_loging = false;
156	$config->log_file = "/var/log/serweb";
157
159		  PEAR_LOG_EMERG, PEAR_LOG_ALERT, PEAR_LOG_CRIT, PEAR_LOG_ERR, 
160		  PEAR_LOG_WARNING, PEAR_LOG_NOTICE, PEAR_LOG_INFO, PEAR_LOG_DEBUG
161	   see http://www.indelible.org/pear/Log/guide.php#log-levels for more info
162	 */
163	$config->log_level = "PEAR_LOG_WARNING";
164	
file.php https://bitbucket.org/wayfarer/verse.git | PHP | 312 lines
2/**
3 * $Header: /repository/pear/Log/Log/file.php,v 1.45 2006/01/11 07:56:37 jon Exp $
4 *
9/**
10 * The Log_file class is a concrete implementation of the Log abstract
11 * class that logs messages to a text file.
257     * Logs $message to the output window.  The message is also passed along
258     * to any Log_observer instances that are observing this Log.
259     *
262     *                  values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
263     *                  PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
264     *                  PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
297
298        /* Write the log line to the log file. */
299        $success = (fwrite($this->_fp, $line) !== false);
InnomaticLogsMaintenance.php https://bitbucket.org/innoteam/innomatic.git | PHP | 458 lines
261        $reg = Registry::instance();
262        if (file_exists(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/innomatic.log')) $total += filesize(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/innomatic.log');
263        if (file_exists(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/innomatic_root_db.log')) $total += filesize(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/innomatic_root_db.log');
265        if (file_exists(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/webservices.log')) $total += filesize(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/webservices.log');
266        if (file_exists(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/php.log')) $total += filesize(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/php.log');
267
310        {
311            $log = new Logger(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/innomatic_root_db.log');
312            $log->Rotate(0);
319        {
320            $log = new Logger(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/php.log');
321            $log->Rotate(0);
360        {
361            $log = new Logger(InnomaticContainer::instance('innomaticcontainer')->getHome().'core/log/php.log');
362            $log->Rotate(7);
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',
PodioAPI.php https://github.com/fabianmu/shodio.git | PHP | 648 lines
195  /**
196   * Current log handler for the API log
197   */
268   * @param $level The log level. See:
269   *               http://www.indelible.org/php/Log/guide.html#log-levels
270   */
271  public function log($message, $level = PEAR_LOG_INFO) {
272    $logger = &Log::singleton($this->log_handler, $this->log_name, $this->log_ident);
273    $logger->log('[api] ' . $message, $level);
606              $this->log($request->getMethod() .' '. $response->getStatus().' '.$response->getReasonPhrase().' '.$request->getUrl(), PEAR_LOG_WARNING);
607              $this->log($response->getBody(), PEAR_LOG_WARNING);
608            }
617            if ($this->getLogLevel('error')) {
618              $this->log($request->getMethod() .' '. $response->getStatus().' '.$response->getReasonPhrase().' '.$request->getUrl(), PEAR_LOG_WARNING);
619              $this->log($response->getBody(), PEAR_LOG_WARNING);
log.md git://github.com/joomla/joomla-platform.git | Markdown | 307 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```
file.php https://bitbucket.org/chamilo/chamilo/ | PHP | 317 lines
9/**
10 * The Log_file class is a concrete implementation of the Log abstract
11 * class that logs messages to a text file.
26     */
27    var $_filename = 'php.log';
28
261     * Logs $message to the output window.  The message is also passed along
262     * to any Log_observer instances that are observing this Log.
263     *
266     *                  values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
267     *                  PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
268     *                  PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
301
302        /* Write the log line to the log file. */
303        $success = (fwrite($this->_fp, $line) !== false);
LogTest.php git://github.com/ruflin/Elastica.git | PHP | 66 lines
15	public function testSetLogConfigPath() {
16		$logPath = '/tmp/php.log';
17		$client = new Elastica_Client(array('log' => $logPath));
32		$client = new Elastica_Client();
33		$log = new Elastica_Log($client);
34		
40	public function testGetLastMessage() {
41		$client = new Elastica_Client(array('log' => '/tmp/php.log'));
42		$log = new Elastica_Log($client);
55		$errorLog = ini_get('error_log');
56		ini_set('error_log', sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'php.log');
57		
59	
60		$log->log($message);
61		
Atomik.php http://atomikframework.googlecode.com/svn/trunk/ | PHP | 3,022 lines
250            'error'              => ATOMIK_APP_ROOT . '/error.php',
251            'log'                => ATOMIK_APP_ROOT . '/log.txt'
252        ),
533        } catch (Exception $e) {
534            self::log('[EXCEPTION: ' . $e->getCode() . '] ' . $e->getMessage(), LOG_ERR);
535            self::fireEvent('Atomik::Error', array($e));
724            
725            self::log('Dispatching action ' . $request['action'], LOG_DEBUG);
726            $vars = array();
763            if ($e->getCode() == 404) {
764                self::log('[404 NOT FOUND] ' . $e->getMessage(), LOG_ERR);
765                self::fireEvent('Atomik::404', array($e));
797        
798        self::log('Ending', LOG_DEBUG);
799        exit;
testwebservice.php git://github.com/moodle/moodle.git | PHP | 1,575 lines
1<?php
2
117
118            //Does not work till XML => PHP is implemented (MDL-22965)
119            if ($this->testrest) {
122
123                require_once($CFG->dirroot . "/webservice/rest/lib.php");
124                $restclient = new webservice_rest_client($CFG->wwwroot
124                $restclient = new webservice_rest_client($CFG->wwwroot
125                                . '/webservice/rest/server.php', $this->testtoken);
126
264
265            //Display the content of $coursecontents in your php log and check if you obtain
266            //what you are expecting
1534        $message2['text'] = 'this is a message with an image
1535            http://moodle.org/pluginfile.php/51/mod_forum/post/713724/moodle2-logo.png';
1536        $message2['touserid'] = 2;  //replace by a existing user id
Atomik.php http://atomikframework.googlecode.com/svn/trunk/ | text | 0 lines
250            'error'              => ATOMIK_APP_ROOT . '/error.php',
251            'log'                => ATOMIK_APP_ROOT . '/log.txt'
252        ),
1898        // loads the plugin
1899        self::log('Loading plugin ' . $plugin, LOG_DEBUG);
1900        self::instance()->scoped($filename, array('config' => $config));
2152        
2153        self::log('Dispatching pluggable application: ' . $plugin, LOG_DEBUG);
2154        
2883    /**
2884     * Fire an Atomik::Log event to which logger can listen
2885     * 
2894    /**
2895     * Default logger: log the message to the file defined in atomik/files/log
2896     * The message template can be define in atomik/log/message_template
config.php git://github.com/newscloud/open-social-media-toolkit.git | PHP | 267 lines
1<?php
2	/* INSTALLATION MENU */
67	//$menu.='<li><a href="?p=config&action=resetDB&apiKey='.$apiKey.'">Reset the database</a> - erases everything</li>';
68	//$menu.='<li><a href="?p=config&action=resetLog&apiKey='.$apiKey.'">Reset the log</a> - erases all user activities</li>';
69		
86		case 'removeTestData':
87			include_once PATH_CORE."utilities/removeTestData.php";			
88		break;
202		if (defined('NO_LOGGING') AND NO_LOGGING) {	
203			$warnings.='<p><span style="color:orange;"><strong>NOTICE: Logging is turned off</strong></span> You can turn it on constants.php. You will need to touch and permission the specified /var/logs/*.log files for Apache to write to.</p>';
204		} else {
205			try {	
206				$tempStr=' <p><span style="color:red;"><strong>WARNING:</strong></span> Logging problem - could not open or write to '.PATH_LOGFILE.' - create the file e.g. touch '.PATH_LOGFILE.', then set ownership for Apache Web service e.g. chown www-data:www-data '.PATH_LOGFILE.'</p>';
207				$handle = fopen(PATH_LOGFILE, "a");
210				else {
211					$res=fwrite($handle,"config.php log test");
212					if (!$res) $warnings.=$tempStr;									
file.php git://github.com/matamouros/cintient.git | PHP | 321 lines
9/**
10 * The Log_file class is a concrete implementation of the Log abstract
11 * class that logs messages to a text file.
26     */
27    var $_filename = 'php.log';
28
36    /**
37     * Should new log entries be append to an existing log file, or should the
38     * a new log file overwrite an existing one?
267     *                  PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
268     *                  PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
269     * @return boolean  True on success or false on failure.
306
307        /* Write the log line to the log file. */
308        $success = (fwrite($this->_fp, $line) !== false);
file.php https://bitbucket.org/davidmpaz/ezpdo.git | PHP | 267 lines
4/**
5 * The Log_file class is a concrete implementation of the Log abstract
6 * class that logs messages to a text file.
180    /**
181     * Opens the log file for output.  If the specified log file does not
182     * already exist, it will be created.  By default, new log entries are
231     *                  PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
232     *                  PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
233     *                  The default is PEAR_LOG_INFO.
236     */
237    function log($message, $priority = PEAR_LOG_INFO)
238    {
256
257        /* Write the log line to the log file. */
258        $success = (fwrite($this->_fp, $line) !== false);
file.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 360 lines
43     */
44    var $_filename = 'php.log';
45
290     * Logs $message to the output window.  The message is also passed along
291     * to any Log_observer instances that are observing this Log.
292     *
294     * @param string $priority The priority of the message.  Valid
295     *                  values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
296     *                  PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
296     *                  PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
297     *                  PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
298     * @return boolean  True on success or false on failure.
345
346        /* Write the log line to the log file. */
347        $success = (fwrite($this->_fp, $line) !== false);
0.1.1.php https://code.google.com/p/ecartcommerce/ | PHP | 125 lines
82        Ecart::single('core/config_field')
83            ->add('log', 'Log', null, null, array('translation_module' => 'Ecart_Log'))
84            ->add('log/main/enabled', 'Log/General/Enabled', 1, 'bool')
84            ->add('log/main/enabled', 'Log/General/Enabled', 1, 'bool')
85            ->add('log/main/php', 'Php log', '/var/logs/php.log', 'string', 'Path relative to ECART_ROOT')
86            ->add('log/main/payment', 'Payment log', '/var/logs/payment.log', 'string', 'Path relative to ECART_ROOT')
86            ->add('log/main/payment', 'Payment log', '/var/logs/payment.log', 'string', 'Path relative to ECART_ROOT')
87            ->add('log/main/shipping', 'Shipping log', '/var/logs/shipping.log', 'string', 'Path relative to ECART_ROOT');
88
89        Ecart::single('admin/menu')
90            ->add('Catalog', null, 20, 'Ecart_Catalog')
91            ->add('Catalog->Reports', null, 60, 'Ecart_Admin')
94        Ecart::single('admin/acl_resource')
95            ->add('admin/log', 'Log Pageviws')
96            ->add("admin/log/index")
stock.php https://bitbucket.org/cpoppema/stockpiler.git | PHP | 423 lines
1<?php
2
89        set("body", $body);
90        return html("stock/history.php");
91    }
113        set("title", "Stock Delivery");
114        return html("stock/delivery.php");
115    }
151
152                    // Log adding delivery
153                    $entry = R::dispense('log');
188
189                    // Log adding delivery
190                    $entry = R::dispense('log');
217        set("title", "Stock Delivery");
218        return html("stock/delivery.php");
219    }
amuleweb-main-log.php https://bitbucket.org/gzf/umule.git | PHP | 271 lines
114
115<?php
116	// apply new options before proceeding
204          <td><a href="amuleweb-main-search.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('search','','images/search_1.png',1)"><img src="images/search_0.png" alt="search" name="search" width="52" height="50" border="0"></a></td>
205          <td><a href="amuleweb-main-servers.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('edkserver','','images/edkserv_1.png',1)"><img src="images/edkserv_0.png" alt="edkserver" name="edkserver" width="52" height="50" border="0"></a></td>
206          <td><a href="amuleweb-main-kad.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('sheserv','','images/sheserv_1.png',1)"><img src="images/sheserv_0.png" alt="sheserv" name="sheserv" width="52" height="50" border="0"></a></td>
210          <td width="190" align="right" class="texteinv"><a href="login.php">exit</a><br> 
211            <a href="amuleweb-main-log.php">log &bull;</a> <a href="amuleweb-main-prefs.php">configuration</a></td>
212          <td width="10"></td>
234		<h1 style="display:inline;">aMule log</h1>
235		<a href="log.php?rstlog=1" target="logframe" onclick="return confirm('Do you really want to reset aMule log?')">(Reset log)</a><br>
236	<iframe width="100%" height="400" name="logframe" src="log.php"></iframe>
241		<a href="log.php?rstsrv=1" target="srvframe" onclick="return confirm('Do you really want to reset Serverinfo?')">(Reset Serverinfo)</a>
242<iframe width="100%" height="200" name="srvframe" src="log.php?show=srv"></iframe>
243                  </td>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21