Technology Articles

The science of today is the technology of tomorrow. Browse Technology related articles.

Dot. NET Articles

Browse the Dot.NET technical articles.

Web Design & Development

Browse Web Design & Development Articles which includes Technologies of Drupal, Joomla, CodeIgnitor, JQUERY, CMS, etc.

Health Articles

Browse Health Tips & Articles

Monday, October 11, 2010

Apache log4cxx framework - Example using Pthreads - Part Two

This blog post is continued from Apache log4cxx framework - Part One

This post comprises of a simple Configuration file and how it can be incorporated to a c++ code file for using the log4cxx framework.

Add the following simple xml Configuration file and name it as "MyLog4CxxConfig.xml"

<?xml version="1.0" encoding="UTF-8" ?>
 <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> 

Sunday, October 10, 2010

Php Mysqli extension

The MySql Improved Extension, a.k.a mysqli is faster more improved version of existing mysql. It is available in PHP 5 or later versions. The source code of mysqli is available at ext/mysqli. For further information click here.
A simple example how to connect and insert temp data to database 'mydb' and table 'mytable'.
Lets add DbConnector.php first,

Apache log4cxx framework - Part One

I happened to work with Apache log4cxx, a logging framework for c++. This framework offers lot of capabilities from simply outputting a log message to console, writing to log files, socket streaming and database logging. Best thing that i love about this framework that it is Thread safe.

Apache log4cxx, You can download it here

Log4cxx comprises of three main parts,


1) Public Class Logger
- Top level entry point of Logger