SOL9 Sample: HexLogWriter

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * HexLogWriter.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */



#include <sol\LogWriter.h>

void _tmain(int argc, TCHAR* argv[])
{
  //
  LogWriter& log = LogWriter::getInstance();
  _tprintf(_T("Level:%d \nOutput filePath:%s\n"), log.getLevel(), log.getFullPath());
  
  const int SIZE = 256;
  unsigned char bin[SIZE];
  for (int i = 0; i<SIZE; i++) {
    bin[i] = (i*i*i) %SIZE;
  }

  log.traceHex("HexLogWriter:TraceHex", bin, SIZE);

  log.errorHex("HexLogWriter:ErrorHex", bin, SIZE);

  log.debugHex("HexLogWriter:DebugHex",  bin, SIZE);

      
}

Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.