equal
deleted
inserted
replaced
338 |
338 |
339 |
339 |
340 int logFileNameLen = strlen(fileName); |
340 int logFileNameLen = strlen(fileName); |
341 TPtr8 fileNamePtr((unsigned char*)fileName, logFileNameLen, logFileNameLen); |
341 TPtr8 fileNamePtr((unsigned char*)fileName, logFileNameLen, logFileNameLen); |
342 RBuf nameBuf; |
342 RBuf nameBuf; |
343 int rc = nameBuf.Create(fileNamePtr.MaxLength()); |
343 nameBuf.Create(fileNamePtr.MaxLength()); |
344 if (rc == KErrNone) |
344 nameBuf.Copy(fileNamePtr); |
345 { |
345 |
346 nameBuf.Copy(fileNamePtr); |
346 TInt len = strlen(txt); |
347 |
347 TPtr8 ptr((unsigned char*)txt, len, len); |
348 TInt len = strlen(txt); |
348 RFileLogger::Write(KJavaLogDir, nameBuf, EFileLoggingModeAppendRaw, ptr); |
349 TPtr8 ptr((unsigned char*)txt, len, len); |
349 |
350 RFileLogger::Write(KJavaLogDir, nameBuf, EFileLoggingModeAppendRaw, ptr); |
350 nameBuf.Close(); |
351 nameBuf.Close(); |
|
352 } |
|
353 |
351 |
354 #else //J_LOG_USE_RLOGGER_ENABLED |
352 #else //J_LOG_USE_RLOGGER_ENABLED |
355 |
353 |
356 int fd = GetFileDescriptor(index); |
354 int fd = GetFileDescriptor(index); |
357 if (fd != DES_FILE_CLOSED) |
355 if (fd != DES_FILE_CLOSED) |