Power to Build

Home » Misc » EAServers – Logging

EAServers – Logging

Sybase (Now SAP) EAserver is a full blown apache server with PowerBuilder VM added in. In my personal experience, it is a great product. It’s a shame, Sybase and SAP both dumped it, without thinking of any alternatives to deploy PB in n-tier environment.

Like any Java container, EAServer provides a lot of services and API for applications to use. One of them is the logging submodule in EAServer. EAServer allows one to log messages to external resources (like file, console etc) using a set of submodules. You can actually use EAServer’s own logger or the Java logger or even log4j. And it is very easy to switch the logger. Apart from the system logger, you can also create loggers that you can use to write application messages.

Here is a simple diagram to show the logging hierarchy available inside EAServer:

 

And here is how you can setup the logging profiles. These help to switch to a new scheme of logging quickly. Categories, Handlers and Formatters help setup each logging profile as needed.

 


Comments, please?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: