31 using namespace basis;
44 #define BASE_LOG(s) STAMPED_EMERGENCY_LOG(program_wide_logger::get(), s)
45 #define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)
53 virtual void handle_startup() {
BASE_LOG(
"into startup..."); }
54 virtual void handle_shutdown() {
BASE_LOG(
"into shutdown..."); }
55 virtual void handle_timer() {
BASE_LOG(
"into timer..."); }
71 BASE_LOG(
"after creating the alerter's console app...");
72 BASE_LOG(
"still here, but about to exit... kaboom?");
a_sprintf is a specialization of astring that provides printf style support.
Provides operations commonly needed on file names.
A platform-independent way to alert a program that it should shut down immediately.
static bool launch_console(shutdown_alerter &alert, const basis::astring &app_name, int timer_period=0)
this is used to begin execution of a console mode application.
#define formal(parameter)
This macro just eats what it's passed; it marks unused formal parameters.
Implements an application lock to ensure only one is running at once.
The guards collection helps in testing preconditions and reporting errors.
str basename(str pathname)
A platform independent way to obtain the timestamp of a file.
A logger that sends to the console screen using the standard output device.
Useful support functions for unit testing, especially within hoople.
int main(int formal(argc), char *formal(argv)[])