Skip to content

Commit

Permalink
Fixed issue mikechambers#112.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikechambers committed Sep 22, 2009
1 parent 192e772 commit 0ad1512
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/com/adobe/air/logging/FileTarget.as
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 0ad1512

Please sign in to comment.