Changeset 164 in dev


Ignore:
Timestamp:
Jun 17, 2007, 1:44:55 PM (17 years ago)
Author:
dai_9181
Message:
 
Location:
trunk/jenga
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/include/common/logger.h

    r154 r164  
    1212#include <stdarg.h>
    1313
     14#include <jenga/include/common/Environment.h>
     15
    1416#define STDX_DSTREAM_BUFFERING
    1517
    1618
    1719using namespace std;
     20
     21namespace Jenga{
     22namespace Common{
    1823
    1924
     
    4954inline void basic_dbg_streambuf<char>::dbg_out(const char *str)
    5055{
    51     ofstream ofs( ( (string)/*BasicSystemDir +*/ "logger.log" ).c_str(), ios_base::app );
     56    ofstream ofs( ( Environment::GetAppDir() + "\\logger.log" ).c_str(), ios_base::app );
    5257    ofs << str ;
    5358    ofs.close();
     
    6166    basic_dbg_streambuf<Ch_T, Tr_T>())
    6267    {
    63         ofstream ofs( ( (string)/*BasicSystemDir +*/ + "logger.log" ).c_str(), ios_base::trunc );
     68        ofstream ofs( ( Environment::GetAppDir() + "\\logger.log" ).c_str(), ios_base::trunc );
    6469        ofs.close();
    6570    }
     
    7277};
    7378
    74 // ログ生成しない場合はこの下の行をコメントアウトする
    75 #define USE_TRACE
    7679
    77 #ifdef USE_TRACE
    7880static basic_dbg_ostream<_TCHAR> logger;
    79 #define trace(s) logger << s << endl
    80 #else
    81 #define trace(s)
    82 #endif
     81
     82
     83}}
  • trunk/jenga/projects/common/common.vcproj

    r162 r164  
    4040                Name="VCCLCompilerTool"
    4141                Optimization="0"
    42                 AdditionalIncludeDirectories="..\..\include\common"
     42                AdditionalIncludeDirectories="..\..\..\"
    4343                MinimalRebuild="true"
    4444                BasicRuntimeChecks="3"
     
    102102            <Tool
    103103                Name="VCCLCompilerTool"
    104                 AdditionalIncludeDirectories="..\..\include\common;..\..\cpplibs\boost"
     104                AdditionalIncludeDirectories="..\..\..\"
    105105                RuntimeLibrary="0"
    106106                WarningLevel="3"
     
    163163                Name="VCCLCompilerTool"
    164164                Optimization="0"
    165                 AdditionalIncludeDirectories="..\..\include\common"
     165                AdditionalIncludeDirectories="..\..\..\"
    166166                MinimalRebuild="true"
    167167                BasicRuntimeChecks="3"
     
    225225            <Tool
    226226                Name="VCCLCompilerTool"
    227                 AdditionalIncludeDirectories="..\..\include\common;..\..\cpplibs\boost"
     227                AdditionalIncludeDirectories="..\..\..\"
    228228                RuntimeLibrary="0"
    229229                WarningLevel="3"
     
    280280            >
    281281            <File
     282                RelativePath="..\..\include\common\Environment.h"
     283                >
     284            </File>
     285            <File
    282286                RelativePath="..\..\include\common\logger.h"
    283287                >
  • trunk/jenga/src/common/index.cpp

    r162 r164  
    1 #include <logger.h>
     1#include <jenga/include/common/logger.h>
     2#include <jenga/include/common/Environment.h>
Note: See TracChangeset for help on using the changeset viewer.