logging-log4php-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Re: HipHop build errors in log4php
Date Thu, 25 Aug 2011 16:58:06 GMT
Yes, the class Mongo seems not to be compiled in your PHP version.
My guess is you should remove the LoggerAppenderMongoDB.php (and the
loading in Logger.php) or add the Mongo lib into PHP.

MongoDB is a pretty new feature in log4php, I assume you use 2.1.
We have not tried to compile with HipHop, so please report back if that helped

Cheers

On Thu, Aug 25, 2011 at 6:53 PM, hitesh2223
<hitesh.kumar@openlifecycle.com> wrote:
>
> Hi, Can someone please help me for the following errors.
> The following log4php errors show up during the HipHop build:
>
> "UnknownClass":[
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderMongoDB.php",119,23,119,76]
> ,"d":"new Mongo(sprintf('%s:%d', $this->host, $this->port))"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderMongoDB.php",160,19,160,63]
> ,"d":"new MongoDate($timestampSec, $timestampUsec)"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/helpers\/LoggerPatternParser.php",309,12,309,104]
> ,"d":"new LoggerUserFieldPatternConverter($this->formattingInfo,
> (string)ord($cNext) - 48)"
>        }
> ]
>
> "UnknownObjectMethod":[
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderMongoDB.php",120,26,120,57]
> ,"d":"$this->connection->selectDB($this->databaseName)"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderMongoDB.php",122,69,122,69]
> ,"d":"$db->authenticate($this->userName, $this->password)"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderMongoDB.php",128,67,128,67]
> ,"d":"$db->selectCollection($this->collectionName)"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderMongoDB.php",145,20,145,39]
> ,"d":"$this->collection->insert($document)"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderMongoDB.php",198,61,198,61]
> ,"d":"$ex->getPrevious()"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderMongoDB.php",199,71,199,71]
> ,"d":"$ex->getPrevious()"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/renderers\/LoggerRendererException.php",34,59,34,59]
> ,"d":"$o->getPrevious()"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/renderers\/LoggerRendererException.php",35,67,35,67]
> ,"d":"$o->getPrevious()"
>        }
> ]
>
> "UnknownFunction":[
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/Logger.php",25,0,25,50]
> ,"d":"spl_autoload_register(array('Logger', 'autoload'))"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderAdodb.php",122,15,122,44]
> ,"d":"adonewconnection($this->type)"
>        } ,
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderSocket.php",188,2,188,17]
> ,"d":"parent::reset()"
>        }
> ]
>
> "RequiredAfterOptionalParam":[
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/configurators\/LoggerConfiguratorXml.php",138,30,138,68]
> ,"d":"LoggerHierarchy $repository"
>        }
> ]
>
> "UseVoidReturn":[
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/LoggerReflectionUtils.php",52,54,52,54]
> ,"d":"$pSetter->setProperties($properties, $prefix)"
>        }
> ]
>
> "UseUndeclaredConstant":[
>        {"c1":
>
> ["\/var\/lib\/tomcat6\/webapps\/hudson\/jobs\/Rontgen\/workspace\/lib\/log4php\/appenders\/LoggerAppenderAdodb.php",22,13,22,22]
> ,"d":"ADODB_DIR"
>        }
> ]
>
>
> Thanks,
> --
> Hitesh
> --
> View this message in context: http://old.nabble.com/HipHop-build-errors-in-log4php-tp32335987p32335987.html
> Sent from the Log4php - Dev mailing list archive at Nabble.com.
>
>



-- 
http://www.grobmeier.de

Mime
View raw message