Permalink
Browse files

Fixed issue #112.

  • Loading branch information...
1 parent 192e772 commit 0ad1512e533a5bf0311a7151319076a81bc51899 @mikechambers committed Sep 22, 2009
Showing with 4 additions and 7 deletions.
  1. +4 −7 src/com/adobe/air/logging/FileTarget.as
@@ -32,15 +32,12 @@
package com.adobe.air.logging
{
- import mx.logging.AbstractTarget;
import flash.filesystem.File;
- import flash.filesystem.FileStream;
import flash.filesystem.FileMode;
- import mx.logging.LogEvent;
- import flash.system.System;
- import flash.system.Capabilities;
- import mx.logging.targets.LineFormattedTarget;
+ import flash.filesystem.FileStream;
+
import mx.core.mx_internal;
+ import mx.logging.targets.LineFormattedTarget;
use namespace mx_internal;
@@ -82,7 +79,7 @@ package com.adobe.air.logging
{
var fs:FileStream = new FileStream();
fs.open(log, FileMode.APPEND);
- fs.writeUTFBytes(msg + "\n");
+ fs.writeUTFBytes(msg + File.lineEnding);
fs.close();
}

0 comments on commit 0ad1512

Please sign in to comment.