Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue #112.

  • Loading branch information...
commit 0ad1512e533a5bf0311a7151319076a81bc51899 1 parent 192e772
@mikechambers authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 src/com/adobe/air/logging/FileTarget.as
View
11 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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.