/**
 * Copyright 2012 The PlayN Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package playn.ios;

import playn.core.Log;

class IOSLog implements Log
{
  @Override
  public void error(String msg, Throwable e) {
    throw new RuntimeException("TODO");
  }

  @Override
  public void error(String msg) {
    throw new RuntimeException("TODO");
  }

  @Override
  public void info(String msg) {
    throw new RuntimeException("TODO");
  }

  @Override
  public void info(String msg, Throwable e) {
    throw new RuntimeException("TODO");
  }

  @Override
  public void debug(String msg) {
    throw new RuntimeException("TODO");
  }

  @Override
  public void debug(String msg, Throwable e) {
    throw new RuntimeException("TODO");
  }

  @Override
  public void warn(String msg) {
    throw new RuntimeException("TODO");
  }

  @Override
  public void warn(String msg, Throwable e) {
    throw new RuntimeException("TODO");
  }
}

@@ -611,16 +611,44 @@
 n.ios;%0A%0A
+import cli.System.Console;%0A%0A
 import p
@@ -693,16 +693,41 @@
 s Log%0A%7B%0A
+  // TODO: stack traces%0A%0A
   @Overr
@@ -736,37 +736,37 @@
 e%0A  public void 
-error
+debug
 (String msg, Thr
@@ -764,62 +764,49 @@
  msg
-, Throwable e) %7B%0A    throw new RuntimeException(%22TODO%22
+) %7B%0A    Console.WriteLine(%22DEBUG: %22 + msg
 );%0A 
@@ -839,13 +839,13 @@
 oid 
-error
+debug
 (Str
@@ -855,49 +855,62 @@
  msg
-) %7B%0A    throw new RuntimeException(%22TODO%22
+, Throwable e) %7B%0A    debug(msg + %22: %22 + e.getMessage()
 );%0A 
@@ -966,41 +966,29 @@
     
-throw new RuntimeException(%22TODO%22
+Console.WriteLine(msg
 );%0A 
@@ -1057,41 +1057,40 @@
     
-throw new RuntimeException(%22TODO%22
+info(msg + %22: %22 + e.getMessage()
 );%0A 
@@ -1111,37 +1111,36 @@
 e%0A  public void 
-debug
+warn
 (String msg) %7B%0A 
@@ -1146,41 +1146,40 @@
     
-throw new RuntimeException(%22TODO%22
+Console.WriteLine(%22WARN: %22 + msg
 );%0A 
@@ -1200,37 +1200,36 @@
 e%0A  public void 
-debug
+warn
 (String msg, Thr
@@ -1248,41 +1248,40 @@
     
-throw new RuntimeException(%22TODO%22
+warn(msg + %22: %22 + e.getMessage()
 );%0A 
@@ -1302,36 +1302,37 @@
 e%0A  public void 
-warn
+error
 (String msg) %7B%0A 
@@ -1338,41 +1338,41 @@
     
-throw new RuntimeException(%22TODO%22
+Console.WriteLine(%22ERROR: %22 + msg
 );%0A 
@@ -1393,36 +1393,37 @@
 e%0A  public void 
-warn
+error
 (String msg, Thr
@@ -1442,41 +1442,41 @@
     
-throw new RuntimeException(%22TODO%22
+error(msg + %22: %22 + e.getMessage()
 );%0A 

Implement simple logging to console.