ExamVeda
Login
Home
61
What is the significance of the JavaScript logging library loglevel?
Discuss
Answer & Solution
Answer: Option A
Solution:
loglevel is a lightweight, minimal and convenient JavaScript logging library which provides a reliable and extremely easy-to-use layer over the various console.log() methods that are often available, with none of their downsides. loglevel makes these methods safe to use by gracefully handling the cases where they don’t exist, and also lets you filter the output of these, to only show messages at warn level or above, for example. This level is persisted in cookies (if available, safely handling non-browser environments too). loglevel doesn’t try and go beyond this, instead just sticking to the core fundamentals of logging with no frills.
62
Which of the following browsers support the usage of the JavaScript logging library log4javascript?
Discuss
Answer & Solution
Answer: Option D
Solution:
Since a major use of JavaScript logging is in browser testing, log4javascript is tested and works across all recent major browsers, including :
1. Internet Explorer 5+ for Windows
2. Mozilla, Firefox, Netscape
3. Google Chrome
4. Safari 1.3+
5. Opera 7.5+
6. WebKit
7. Konqueror 3.4+
63
What is the significance of the JavaScript logging library log4javascript?
Discuss
Answer & Solution
Answer: Option C
Solution:
log4javascript is a fully-featured, easy-to-use JavaScript logging framework based on the Java logging framework log4j. Its purpose is to provide JavaScript developers with a familiar, robust and flexible logging framework with which to debug JavaScript applications.
64
Which of the following JavaScript logging framework lets one to toggle the plane?
Discuss
Answer & Solution
Answer: Option A
Solution:
Lumberjack is a javascript logging framework that includes a sexy logging pane/console that stays at the bottom of the page. You can toggle the pane.
65
Which of the following JavaScript logging tool is also a debugging tool?
Discuss
Answer & Solution
Answer: Option C
Solution:
jsTracer is a simple yet feature rich JavaScript logging and debugging tool. It is especially useful for debugging what has been coined “Web 2.0” code.
66
Which of the following JavaScript logging tool is standalone?
Discuss
Answer & Solution
Answer: Option B
Solution:
Log Hound is a standalone JavaScript logging utility that allows you to log messages during execution of JavaScript code. The log messages are stored and are viewable via the logging user interface which allows you to search the messages using multiple cooperative criteria) Log messages can be categorized by severity and by tags that can be associated with the messages when they are logged.
67
Which of the following are appenders?
Discuss
Answer & Solution
Answer: Option D
Solution:
There are several ways to log using “appender”s. The current available Appenders are:
1. DummyAppender: log nothing.
2. ConsoleAppender: open a new window in the browser or an inline div element and insert log messages in real time.
3. WindowsEventAppender: send log messages in the MS Windows event manager (Internet Explorer only).
4. FileAppender: write log messages in a local file on the client (IE and Mozilla).
5. AjaxAppender: allow to send log messages to a remote server with asynchronous HTTP request.
6. MetatagAppender: add log messages as meta data.
7. JavaScript Console Appenders for Opera, Mozilla and Safari.
68
Which of the following reads the textual contents of a URL and returns as a string?
Discuss
Answer & Solution
Answer: Option D
Solution:
Rhino defines a handful of important global functions that are not part of core JavaScript in which readUrl(url) reads the textual contents of a URL and return as a string.
69
When does JSNLog have server-side extensions?
Discuss
Answer & Solution
Answer: Option A
Solution:
If you use .Net, JSNLog has server side extensions that receive log data from the browser and have it logged on the server. And it lets you configure your loggers in your web.config.