file_logger.cpp File Reference

#include "console_logger.h"
#include "file_logger.h"
#include <basis/chaos.h>
#include <basis/function.h>
#include <basis/istring.h>
#include <basis/mutex.h>
#include <basis/portable.h>
#include <data_struct/static_memory_gremlin.h>
#include <opsystem/byte_filer.h>
#include <opsystem/critical_events.h>
#include <opsystem/directory.h>
#include <opsystem/filename.h>
#include <opsystem/path_configuration.h>
#include <opsystem/rendezvous.h>
#include <textual/byte_format.h>
#include <stdio.h>

Include dependency graph for file_logger.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int static_chaos ()
istring app_name_for_file_logger ()
 returns a log file name for file_logger based on the program name.
log_baseset_PW_logger_for_file (const istring &file_name, int limit)
 retasks the program wide logger to use a new file_logger.
log_baseset_PW_logger_for_combo (const istring &file_name, int limit, bool standard_error)
 retasks the program wide logger to use a new combo_logger.

Variables

const int REDUCE_FACTOR = 5
const int MAXIMUM_BUFFER_SIZE = 140000


Function Documentation

istring app_name_for_file_logger (  ) 

returns a log file name for file_logger based on the program name.

for a program named myapp.exe, this will be in the form: {logging_dir}/myapp.log

Definition at line 53 of file file_logger.cpp.

References path_configuration::application_name(), path_configuration::make_logfile_name(), and filename::rootname().

log_base* set_PW_logger_for_combo ( const istring file_name,
int  limit = file_logger::LOG_FILE_SIZE,
bool  standard_error = false 
)

retasks the program wide logger to use a new combo_logger.

the original log_base object is returned and must be dealt with appropriately.

Definition at line 416 of file file_logger.cpp.

References retask_program_wide_logger().

log_base* set_PW_logger_for_file ( const istring file_name,
int  limit = file_logger::LOG_FILE_SIZE 
)

retasks the program wide logger to use a new file_logger.

the original log_base object is returned and must be dealt with appropriately.

Definition at line 60 of file file_logger.cpp.

References retask_program_wide_logger().

int static_chaos (  ) 

Definition at line 49 of file file_logger.cpp.

Referenced by file_logger::truncate().


Variable Documentation

const int MAXIMUM_BUFFER_SIZE = 140000

Definition at line 45 of file file_logger.cpp.

Referenced by file_logger::truncate().

const int REDUCE_FACTOR = 5

Definition at line 40 of file file_logger.cpp.


Generated on Fri Oct 10 04:29:38 2008 for HOOPLE Libraries by  doxygen 1.5.1