Redirects console output to an <ul> element
-
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
- Source: 120 |
-
121 |
-
122 |
- 123 | console-log-html.js, 124 | line 5 125 | 126 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
Members
154 | 155 |-
156 |
157 |
-
159 |
<static> DEFAULTS :Object
160 | 161 | 162 |
163 | -
164 |
165 | 166 |168 | 169 | 170 | 171 |
Default CSS classes
167 |Type:
172 |-
173 |
- 174 | 175 | Object 176 | 177 | 178 | 179 | 180 |
-
185 |
186 |
187 |
- Source: 438 |
-
439 |
-
440 |
- 441 | console-log-html.js, 442 | line 86 443 | 444 |
446 |
447 |
448 |
449 |
450 |
451 |
452 |
453 |
Properties:
188 | 189 |-
190 |
191 |
192 | 193 |
406 |194 | 195 | 210 | 211 | 212 | 213 | 214 | 215 |Name 196 | 197 | 198 |Type 199 | 200 | 201 |Argument 202 | 203 | 204 | 205 |Default 206 | 207 | 208 |Description 209 |216 | 217 | 250 | 251 | 252 | 253 | 218 | 219 | 220 |error
221 | 222 | 223 | string 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 |232 | 233 | 234 | 235 | <nullable> 238 | 239 | 240 | 241 |
236 | 237 |242 | 243 | text-danger 244 | 245 | 246 | 247 | 248 | 249 |The default CSS class for error messages
254 | 255 | 288 | 289 | 290 | 291 | 256 | 257 | 258 |warn
259 | 260 | 261 | string 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 |270 | 271 | 272 | 273 | <nullable> 276 | 277 | 278 | 279 |
274 | 275 |280 | 281 | text-warning 282 | 283 | 284 | 285 | 286 | 287 |The default CSS class for warning messages
292 | 293 | 326 | 327 | 328 | 329 | 294 | 295 | 296 |info
297 | 298 | 299 | string 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 |308 | 309 | 310 | 311 | <nullable> 314 | 315 | 316 | 317 |
312 | 313 |318 | 319 | text-success 320 | 321 | 322 | 323 | 324 | 325 |The default CSS class for info messages
330 | 331 | 364 | 365 | 366 | 367 | 332 | 333 | 334 |debug
335 | 336 | 337 | string 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 |346 | 347 | 348 | 349 | <nullable> 352 | 353 | 354 | 355 |
350 | 351 |356 | 357 | text-info 358 | 359 | 360 | 361 | 362 | 363 |The default CSS class for debug messages
368 | 369 | 402 | 403 | 404 | 405 | 370 | 371 | 372 |log
373 | 374 | 375 | string 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 |384 | 385 | 386 | 387 | <nullable> 390 | 391 | 392 | 393 |
388 | 389 |394 | 395 | null 396 | 397 | 398 | 399 | 400 | 401 |The default CSS class for log messages
458 |
459 |
158 |
Methods
464 | 465 |-
466 |
467 |
-
469 |
<static> connect(target [, options] [, includeTimestamp] [, logToConsole] [, appendAtBottom])
470 | 471 | 472 |
473 | -
474 |
475 |
476 | 477 |479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 |
Overwrite the original console.* methods and start outputting to screen
478 |Parameters:
488 | 489 | 490 |491 | 492 |
717 | 718 | 719 | 720 | 721 |493 | 494 | 509 | 510 | 511 | 512 | 513 | 514 |Name 495 | 496 | 497 |Type 498 | 499 | 500 |Argument 501 | 502 | 503 | 504 |Default 505 | 506 | 507 |Description 508 |515 | 516 | 553 | 554 | 555 | 556 | 517 | 518 | 519 |target
520 | 521 | 522 | $ 523 | | 524 | 525 | jQuery 526 | | 527 | 528 | HTMLUListElement 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 |537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 |547 | 548 | 549 | 550 | 551 | 552 |The target <ul> element to output to. Can can either be a
jQuery or vanilla JS HTMLUListElement.557 | 558 | 593 | 594 | 595 | 596 | 559 | 560 | 561 |options
562 | 563 | 564 | Object 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 |573 | 574 | <optional> 581 | 582 | 583 | 584 |
575 | 576 | 577 | 578 | 579 | 580 |585 | 586 | ConsoleLogHTML.DEFAULTS 587 | 588 | 589 | 590 | 591 | 592 |CSS class options. See ConsoleLogHTML.DEFAULTS for
default values.597 | 598 | 633 | 634 | 635 | 636 | 599 | 600 | 601 |includeTimestamp
602 | 603 | 604 | boolean 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 |613 | 614 | <optional> 621 | 622 | 623 | 624 |
615 | 616 | 617 | 618 | 619 | 620 |625 | 626 | true 627 | 628 | 629 | 630 | 631 | 632 |Whether to include the log message timestamp in HTML
637 | 638 | 673 | 674 | 675 | 676 | 639 | 640 | 641 |logToConsole
642 | 643 | 644 | boolean 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 |653 | 654 | <optional> 661 | 662 | 663 | 664 |
655 | 656 | 657 | 658 | 659 | 660 |665 | 666 | true 667 | 668 | 669 | 670 | 671 | 672 |Whether to continue logging to the console as well as HTML.
677 | 678 | 713 | 714 | 715 | 716 | 679 | 680 | 681 |appendAtBottom
682 | 683 | 684 | boolean 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 |693 | 694 | <optional> 701 | 702 | 703 | 704 |
695 | 696 | 697 | 698 | 699 | 700 |705 | 706 | false 707 | 708 | 709 | 710 | 711 | 712 |Whether to append the log messages at the end of the ul-list
-
722 |
723 |
724 |
725 |
726 |
727 |
728 |
729 |
730 |
731 |
732 |
733 |
734 |
735 |
736 |
737 |
738 |
739 |
740 |
741 |
742 |
743 |
744 |
745 |
746 |
747 |
748 |
749 |
750 |
751 |
- Source: 752 |
-
753 |
-
754 |
- 755 | console-log-html.js, 756 | line 118 757 | 758 |
760 |
761 |
762 |
763 |
764 |
765 |
766 |
767 |
Throws:
780 | 781 | 782 | 783 |-
784 |
-
785 | 786 |788 |
If target is not an <ul> element
787 |
789 | - 790 |
- 792 | Type 793 | 794 |
- 795 | 796 | Error 797 | 798 | 799 | 800 | 801 |
-
791 |
812 |
813 |
814 |
815 | -
817 |
<static> disconnect()
818 | 819 | 820 |
821 | -
822 |
823 |
824 | 825 |827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 |
Disconnect our console overrides, reverting to the original state
826 |-
838 |
839 |
840 |
841 |
842 |
843 |
844 |
845 |
846 |
847 |
848 |
849 |
850 |
851 |
852 |
853 |
854 |
855 |
856 |
857 |
858 |
859 |
860 |
861 |
862 |
863 |
864 |
865 |
866 |
867 |
- Source: 868 |
-
869 |
-
870 |
- 871 | console-log-html.js, 872 | line 97 873 | 874 |
876 |
877 |
878 |
879 |
880 |
881 |
882 |
883 |
900 |
901 |
468 |
816 |