mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
console module naming changed to "-"
This commit is contained in:
22
console/console-helper.ios.ts
Normal file
22
console/console-helper.ios.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// TODO: we should use Foundation.NSLog() but it currently does not work
|
||||
// TODO: Is there a better way to implement the info/warn/error
|
||||
|
||||
export var helper_log = function (message: string) {
|
||||
log('log: ' + message);
|
||||
}
|
||||
|
||||
export var info = function (message: string) {
|
||||
log('info: ' + message);
|
||||
}
|
||||
|
||||
export var error = function (message: string) {
|
||||
log('error: ' + message);
|
||||
}
|
||||
|
||||
export var warn = function (message: string) {
|
||||
log('warning: ' + message);
|
||||
}
|
||||
|
||||
export var timeMillis = function (): number {
|
||||
return QuartzCore.CACurrentMediaTime() * 1000;
|
||||
}
|
||||
Reference in New Issue
Block a user