Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console.log is not displayed in the safari terminal, but is displayed in the Xcode console #1394

Open
tanukki2929 opened this issue Jan 15, 2024 · 1 comment

Comments

@tanukki2929
Copy link

The application will be a combination of Angular and Cordova

If you output console.log in Angular like window.console.log=function(){}, console.log will not be output on Safari's console log.
However, when viewed in Xcode's console or mac's console.app, console.log is output and displayed.

Why is it not disabled on consoles other than Safari? Could you please tell me how to disable it?

@tanukki2929
Copy link
Author

tanukki2929 commented Jan 15, 2024

Cordova/platforms/ios/www/cordova.js

If you configure the above file with the following setting 1 or 2 pattern,
The log (console.log) can be viewed in the Xcodes console or console.app on the Mac.

Note that this setting is not relevant for Safari's console.log.

Configuration 1
var UseConsole = true; //false → true
var UseLogger = true;

Configuration 2
var UseConsole = false;
var UseLogger = false;//true→ false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant