libassa 3.5.1
Loading...
Searching...
No Matches
StdOutLogger.h
Go to the documentation of this file.
1// -*- c++ -*-
2//------------------------------------------------------------------------------
3// $Id: StdOutLogger.h,v 1.3 2003/07/25 02:51:47 vlg Exp $
4//------------------------------------------------------------------------------
5// StdOutLogger.h
6//------------------------------------------------------------------------------
7// Copyright (c) 2001 by Vladislav Grinchenko
8//
9// This library is free software; you can redistribute it and/or
10// modify it under the terms of the GNU Library General Public
11// License as published by the Free Software Foundation; either
12// version 2 of the License, or (at your option) any later version.
13//------------------------------------------------------------------------------
14// Created: 10/31/2001
15//------------------------------------------------------------------------------
16#ifndef STDOUT_LOGGER_H
17#define STDOUT_LOGGER_H
18
19#include <fstream>
20#include <string>
21#include <iostream>
22
23#include "assa/Logger_Impl.h"
24
25namespace ASSA {
26
33{
34public:
35 StdOutLogger () { /*empty*/ }
36
37 virtual int log_open (u_long groups_);
38 virtual int log_close (void);
39
40 virtual int log_msg (Group g_,
41 size_t indent_level_,
42 const string& func_name_,
43 size_t expected_sz_,
44 const char* fmt_, va_list);
45
46 virtual int log_func (Group g_,
47 size_t indent_level_,
48 const string& func_name_,
50 virtual void log_resync ();
51
52private:
55};
56
57/*******************************************************************************
58 Inline member functions
59*******************************************************************************/
60inline int
63{
65 return 0;
66}
67
68inline int
70log_close (void)
71{
72 return 0;
73}
74
75inline void
78{
79 std::cout << std::flush;
80}
81
82
83} // end namespace ASSA
84
85#endif /* STDERR_LOGGER_H */
unsigned long u_long
Definition Logger_Impl.h:41
A wrapper class to provide AutoPtr with reference semantics.
Definition AutoPtr.h:32
u_long m_groups
Enabled groups.
StdOutLogger(const StdOutLogger &)
virtual int log_open(u_long groups_)
Open StdErr Logger.
virtual int log_msg(Group g_, size_t indent_level_, const string &func_name_, size_t expected_sz_, const char *fmt_, va_list)
virtual int log_func(Group g_, size_t indent_level_, const string &func_name_, marker_t type_)
StdOutLogger & operator=(const StdOutLogger &)
no cloning
virtual int log_close(void)
virtual void log_resync()
marker_t
Definition LogMask.h:67
Group
Definition LogMask.h:25