mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Definitions for jquery.clientSideLogging #218
This commit is contained in:
24
jquery.clientSideLogging/jquery.clientSideLogging.d.ts
vendored
Normal file
24
jquery.clientSideLogging/jquery.clientSideLogging.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// Type definitions for jquery.clientSideLogging.
|
||||
// Project: https://github.com/remybach/jQuery.clientSideLogging
|
||||
// Definitions by: Diullei Gomes <https://github.com/diullei>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
|
||||
interface ClientSideLoggingClientInfoObject {
|
||||
location?: bool; // The url to the page on which the error occurred.
|
||||
screen_size?: bool; // The size of the user's screen (different to the window size because the window might not be maximized)
|
||||
user_agent?: bool; // The user agent string.
|
||||
window_size?: bool; // The window size.
|
||||
}
|
||||
|
||||
interface ClientSideLoggingObject {
|
||||
error_url?: string; // The url to which errors logs are sent
|
||||
info_url?: string; // The url to which info logs are sent
|
||||
log_url?: string; // The url to which standard logs are sent
|
||||
log_level?: number; // The level at which to log. This allows you to keep the calls to the logging in your code and just change this variable to log varying degrees. 1 = only error, 2 = error & log, 3 = error, log & info
|
||||
native_error?: bool; // Whether or not to send native js errors as well (using window.onerror).
|
||||
hijack_console?: bool; // Hijacks the default console functionality (ie: all your console.error/info/log are belong to us).
|
||||
query_var?: string; // The variable to send the log message through as.
|
||||
client_info?: ClientSideLoggingClientInfoObject; // Configuration for what info about the client's browser is logged.
|
||||
}
|
||||
Reference in New Issue
Block a user