Using the Default Logger in a Service
From within a HydraExpress service, you can access the default Agent logger from the rwsf::LogManager singleton. For example, this code gets the default Agent logger and logs a message:
 
#include <rwsf/core/LogManager.h>
#include <rwsf/core/Logger.h>
 
rwsf::Logger logger = rwsf::LogManager.getLogger();
logger.info("My log message.");
NOTE: The Agent logger cannot be used by the client or standalone services. See “Web Service Logging,” in the HydraExpress Web Service Development Guide.