Log4j how to write an appender

How to write cursor in pl sql oracle