| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #include "src/shared/platform.h" | 5 #include "src/shared/platform.h" |
| 6 #include "src/vm/log_print_interceptor.h" | 6 #include "src/vm/log_print_interceptor.h" |
| 7 | 7 |
| 8 namespace fletch { | 8 namespace dartino { |
| 9 | 9 |
| 10 void LogPrintInterceptor::Out(char* message) { | 10 void LogPrintInterceptor::Out(char* message) { |
| 11 char buf[1024]; | 11 char buf[1024]; |
| 12 snprintf(buf, sizeof(buf), "Fletch VM INFO: %s", message); | 12 snprintf(buf, sizeof(buf), "Dartino VM INFO: %s", message); |
| 13 Platform::WriteText(logPath_, buf, true); | 13 Platform::WriteText(logPath_, buf, true); |
| 14 } | 14 } |
| 15 | 15 |
| 16 void LogPrintInterceptor::Error(char* message) { | 16 void LogPrintInterceptor::Error(char* message) { |
| 17 char buf[1024]; | 17 char buf[1024]; |
| 18 snprintf(buf, sizeof(buf), "Fletch VM ERROR: %s", message); | 18 snprintf(buf, sizeof(buf), "Dartino VM ERROR: %s", message); |
| 19 Platform::WriteText(logPath_, buf, true); | 19 Platform::WriteText(logPath_, buf, true); |
| 20 } | 20 } |
| 21 | 21 |
| 22 } // namespace fletch | 22 } // namespace dartino |
| OLD | NEW |