j1-template 2021.0.16 → 2021.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/blocks/footer/boxes/legal_statements.proc +4 -0
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +1 -1
- data/_includes/themes/j1/modules/connectors/ads +1 -1
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics-legacy.html +36 -0
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +1 -1
- data/_includes/themes/j1/modules/connectors/analytics +2 -3
- data/_includes/themes/j1/modules/connectors/comment/disqus.html +1 -1
- data/_layouts/default.html +11 -1
- data/assets/data/galleries.json +2 -2
- data/assets/data/gallery_customizer.html +2 -2
- data/assets/themes/j1/adapter/js/asciidoctor.js +166 -0
- data/assets/themes/j1/adapter/js/carousel.js +24 -0
- data/assets/themes/j1/adapter/js/fam.js +0 -12
- data/assets/themes/j1/adapter/js/j1.js +36 -21
- data/assets/themes/j1/adapter/js/{jf_gallery.js → justifiedGallery.js} +9 -9
- data/assets/themes/j1/adapter/js/{gallery_customizer.js → justifiedGalleryCustomizer.js} +11 -11
- data/assets/themes/j1/adapter/js/logger.js +35 -23
- data/assets/themes/j1/adapter/js/navigator.js +0 -12
- data/assets/themes/j1/core/css/vendor.css +14 -2
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +8 -2
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +8 -2
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/log4javascript/docs/backwardsincompatibilities.html +90 -0
- data/assets/themes/j1/modules/log4javascript/docs/distribution.html +87 -0
- data/assets/themes/j1/modules/log4javascript/docs/index.html +190 -0
- data/assets/themes/j1/modules/log4javascript/docs/lite.html +182 -0
- data/assets/themes/j1/modules/log4javascript/docs/manual.html +3217 -0
- data/assets/themes/j1/modules/log4javascript/docs/manual_lite.html +383 -0
- data/assets/themes/j1/modules/log4javascript/docs/quickstart.html +230 -0
- data/assets/themes/j1/modules/log4javascript/docs/whatsnew.html +86 -0
- data/assets/themes/j1/modules/log4javascript/js/log4javascript.js +5826 -0
- data/assets/themes/j1/modules/{util/js/log4javascript.js → log4javascript/js/log4javascript.min.js} +17 -0
- data/exe/j1 +1 -1
- data/lib/j1/commands/generate.rb +32 -9
- data/lib/{patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6 → j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.7}/fastfilereaderext.so +0 -0
- data/lib/{patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6 → j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.7}/rubyeventmachine.so +0 -0
- data/lib/j1/patches/rubygems/execjs-2.7.0/lib/execjs/external_runtime.rb +246 -0
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app.rb +1 -1
- data/lib/j1_app/j1_auth_manager/auth_manager.rb +8 -2
- data/lib/j1_app/j1_site_manager/static_site.no-cross-origin.rb +94 -0
- data/lib/j1_app/j1_site_manager/static_site.rb +13 -11
- data/lib/starter_web/Gemfile +20 -14
- data/lib/starter_web/_config.yml +6 -47
- data/lib/starter_web/_data/_defaults/j1_config.yml +460 -0
- data/lib/starter_web/_data/{private.yml@localhost → _defaults/private.yml} +8 -51
- data/lib/starter_web/_data/_defaults/resources.yml +626 -325
- data/lib/starter_web/_data/apps/defaults/{justified_gallery.yml → justifiedGallery.yml} +2 -2
- data/lib/starter_web/_data/apps/defaults/{gallery_customizer.yml → justifiedGalleryCustomizer.yml} +0 -0
- data/lib/starter_web/_data/apps/defaults/{light_gallery.yml → lightGallery.yml} +0 -0
- data/lib/starter_web/_data/apps/{justified_gallery.yml → justifiedGallery.yml} +7 -7
- data/lib/starter_web/_data/apps/{gallery_customizer.yml → justifiedGalleryCustomizer.yml} +0 -0
- data/lib/starter_web/_data/apps/{light_gallery.yml → lightGallery.yml} +0 -0
- data/lib/starter_web/_data/blocks/banner.yml +18 -30
- data/lib/starter_web/_data/blocks/footer.yml +15 -3
- data/lib/starter_web/_data/blocks/panel.yml +4 -6
- data/lib/starter_web/_data/j1_config.yml +8 -7
- data/lib/starter_web/_data/modules/authentication.yml +11 -100
- data/lib/starter_web/_data/modules/defaults/log4javascript.yml +37 -40
- data/lib/starter_web/_data/modules/defaults/quicksearch.yml +2 -0
- data/lib/starter_web/_data/modules/log4javascript.yml +11 -83
- data/lib/starter_web/_data/modules/navigator_menu.yml +25 -6
- data/lib/starter_web/_data/modules/quicksearch.yml +2 -0
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +15 -12
- data/lib/starter_web/_data/plugins/paginator.yml +5 -3
- data/lib/starter_web/_data/private.yml +29 -57
- data/lib/starter_web/_data/private@default.yml +119 -0
- data/lib/starter_web/_data/private@localhost.yml +156 -0
- data/lib/starter_web/_data/resources.yml +33 -16
- data/lib/starter_web/_data/utilities/defaults/util_srv.yml +49 -3
- data/lib/starter_web/_data/utilities/util_srv.yml +8 -65
- data/lib/starter_web/_includes/attributes.asciidoc +9 -6
- data/lib/starter_web/_plugins/asciidoctor-extensions/callout.rb +47 -5
- data/lib/starter_web/_plugins/asciidoctor-extensions/conum.rb +28 -1
- data/lib/starter_web/_plugins/lunr_index.rb +17 -2
- data/lib/starter_web/assets/images/collections/blog/featured/dynamic-web-access.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jamstack-generators.gif +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jamstack-generators.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/static-web-access.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/leon-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/machine-generator-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/j1-256x256.gif +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +44 -45
- data/lib/starter_web/collections/posts/public/featured/_posts/{2020-06-01-about-cookies.adoc → 2020-01-01-about-cookies.adoc} +43 -41
- data/lib/starter_web/collections/posts/public/featured/_posts/{2020-05-01-top-site-generators.adoc → 2021-03-01-site-generators.adoc} +57 -30
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +125 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +4 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +1 -1
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +1 -1
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +1 -1
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +1 -1
- data/lib/starter_web/dot.gitattributes +1 -1
- data/lib/starter_web/dot.gitignore +5 -1
- data/lib/starter_web/package.json +3 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/gallery.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +2 -2
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/index.html +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +44 -47
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +20 -19
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +5 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +38 -34
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +37 -35
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +15 -13
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +10 -8
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +29 -26
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +49 -48
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +43 -16
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +114 -0
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +81 -0
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +70 -48
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +121 -0
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +78 -70
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +2 -2
- data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +0 -1939
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +6 -8
- data/lib/starter_web/utilsrv/_defaults/package.json +13 -9
- data/lib/starter_web/utilsrv/package.json +6 -2
- data/lib/starter_web/utilsrv/server.js +228 -55
- metadata +45 -214
- data/assets/data/menu.1.html +0 -505
- data/lib/starter_web/_data/_defaults/j1_light_gallery.yml +0 -110
- data/lib/starter_web/_data/_defaults/template_settings.yml +0 -258
- data/lib/starter_web/_data/plugins/defaults/notebooks.yml +0 -61
- data/lib/starter_web/_data/plugins/notebooks.yml +0 -70
- data/lib/starter_web/assets/images/collections/blog/featured/staticgen.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/aditya-joshi-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/alex-holyoake-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/anaya-katlego-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonella-lombardi-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/docker-1280x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/jekyll.1200x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/signpost-1920x800-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/water-journal-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/write-1280x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/brandon-mowinkel-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/daniel-jensen-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/florian-olivo-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/go-up-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/ian-schneider-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/jason-rosewell-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/joel-filipe-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/library-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280-v.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-spiske-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-spiske.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-spiske3-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/modules-apps-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/nicola-styles-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/no-time-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/nousnou-iwasaki-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/premium-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/responsive-text-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/robert-v-ruggiero-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/spider-web-1920x1200-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/the-place-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/icons/algolia/search-by-algolia.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/scalable/d1.svg +0 -2025
- data/lib/starter_web/assets/images/modules/icons/netlify/nf-logo.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/scalable/p1.svg +0 -2020
- data/lib/starter_web/assets/images/modules/icons/patreon/favicon-16x16.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/patreon/favicon-32x32.png +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/000_browser_console-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/001_smee_channel-1280x400.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/002_gh_repo_settings-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/003_gh_webhook_settings-1280x1000.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/004_gh_webhook_settings-post-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/005_smee_channel_ping_receive-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/006_gh_redeliver_payload-1280x900.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/007_receive_redelivered_payload-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/000_browser_console.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/000_smee_channel.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/002_gh_repo-settings.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/003_gh_webhook_settings.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/004_gh_webhook_settings-post.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/005_smee_channel_ping_received.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/006_gh_redeliver_payload.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/007_receive_redelivered_payload.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/webhook_flow.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/flows/webhook_flow-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/scaleable/webhook_flow.svg +0 -432
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/auth_mgmr_signin_request_flow.uxf +0 -632
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/webhook_flow.uxf +0 -648
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/get-started-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/130_layout_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/content_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/content_inheritance_thumb.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/html_layout.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1-quickstart-windows.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1-template-theme.jpg +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1_layout.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/jekyll-minima-theme.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/lane_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/layout_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/preparations/msys_installation.jpg +0 -0
- data/lib/starter_web/assets/images/pages/log4j/apache-log4j-logo.png +0 -0
- data/lib/starter_web/assets/images/pages/log4r/code-1920x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/log4r/log4r-logo.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_000.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_001.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_002.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_003.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_004.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_005.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_006.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_007.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_008.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_009.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_010.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_011.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_012.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_013.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_014.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_015.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_016.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_017.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_018.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_019.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_020.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_021.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_022.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_023.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_024.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_025.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_026.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_027.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_028.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_029.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_030.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_031.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_032.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_033.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_034.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_035.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_036.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_037.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_038.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_039.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_040.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_041.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_042.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_043.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_044.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_045.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_046.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_047.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_048.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_049.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_050.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_051.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_052.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_053.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_054.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_055.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_056.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_057.png +0 -0
- data/lib/starter_web/assets/images/pages/material/apple-touch-icon.png +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/jQuery-logo.png +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/jquery-banner-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/jquery-banner-1920x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/src/JQuery-Logo.svg +0 -122
- data/lib/starter_web/assets/images/pages/pen/jquery/src/banner.psd +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/coordinate-map.png +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/kibana-powershell.jpg +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/option_ignore_outgoing.png +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/winlogbeat-dashboard.png +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/1280px-PDCA_Process.png +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/annie-spratt-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/deming-cycle.png +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/humble-lamb-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/john-schnobrich-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/sigmund-1920x1280.jpg +0 -0
- data/lib/starter_web/pages/protected/site_search.adoc +0 -180
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.pdf +1 -5439
- data/lib/starter_web/pages/public/legal/en/000_copyright.adoc +0 -93
- data/lib/starter_web/pages/public/legal/en/100_impress.adoc +0 -55
- data/lib/starter_web/pages/public/legal/en/200_terms_of_use.adoc +0 -53
- data/lib/starter_web/pages/public/legal/en/eu/cookie.policy.asciidoc +0 -50
@@ -0,0 +1,383 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
4
|
+
<head>
|
5
|
+
<title>log4javascript 1.4 Lite manual</title>
|
6
|
+
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
|
7
|
+
<meta name="author" content="Tim Down - tim@log4javascript.org" />
|
8
|
+
<meta name="description" content="log4javascript, a logging framework for JavaScript based on log4j" />
|
9
|
+
<meta name="robots" content="all" />
|
10
|
+
<link rel="stylesheet" type="text/css" media="screen,print" href="../main.css" title="Default" />
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<div id="container" class="nonav">
|
14
|
+
<div id="header">
|
15
|
+
<h1><a href="index.html">log4javascript</a></h1>
|
16
|
+
</div>
|
17
|
+
<div id="content">
|
18
|
+
<div id="nav">
|
19
|
+
<a class="navitem" href="../index.html">home</a>
|
20
|
+
| <a class="navitem" href="http://sourceforge.net/projects/log4javascript" target="_blank" title="Download (opens in new window)">download</a>
|
21
|
+
| <a class="navitem" href="index.html">docs</a>
|
22
|
+
| <a class="navitem" href="quickstart.html">quick start</a>
|
23
|
+
| <a class="navitem" href="../demos/index.html">demos</a>
|
24
|
+
| <a class="navitem" href="http://log4javascript.org" target="_blank">website</a>
|
25
|
+
| <a class="navitem" href="http://www.timdown.co.uk" target="_blank">timdown.co.uk</a>
|
26
|
+
</div>
|
27
|
+
<h1>log4javascript 1.4 Lite manual</h1>
|
28
|
+
<h2>Contents</h2>
|
29
|
+
<ul>
|
30
|
+
<li><a href="#intro">Introduction</a></li>
|
31
|
+
<li><a href="#log4javascript">log4javascript static properties/methods</a></li>
|
32
|
+
<li><a href="#levels">Levels</a></li>
|
33
|
+
<li><a href="#loggers">Loggers</a></li>
|
34
|
+
<li><a href="#enabling">Enabling / disabling log4javascript Lite</a></li>
|
35
|
+
</ul>
|
36
|
+
<div id="intro">
|
37
|
+
<h2>Introduction</h2>
|
38
|
+
<p>
|
39
|
+
log4javascript Lite is designed to be a basic, lightweight, cross-browser logging tool. It
|
40
|
+
provides functions to log messages of different severity to a pop-up window using the exactly
|
41
|
+
the same syntax as log4javascript. It is designed for situations when the key requirement is just
|
42
|
+
to display logging messages without needing all the features of the standard version of
|
43
|
+
log4javascript.
|
44
|
+
</p>
|
45
|
+
<p>
|
46
|
+
Below is the complete list of functions and properties available in log4javascript Lite.
|
47
|
+
They make up a small subset of those provided by the standard version of
|
48
|
+
log4javascript. Each function is <strong>named and called identically to the equivalent
|
49
|
+
function in log4javascript</strong>. Please refer to the
|
50
|
+
<a href="manual.html">log4javascript manual</a> for a detailed explanation
|
51
|
+
of all the concepts alluded to in this document.
|
52
|
+
</p>
|
53
|
+
<p class="linktotop">
|
54
|
+
<a href="#container">Top</a>
|
55
|
+
</p>
|
56
|
+
</div>
|
57
|
+
<div id="log4javascript">
|
58
|
+
<h2>log4javascript static properties/methods</h2>
|
59
|
+
<h4>Properties</h4>
|
60
|
+
<ul class="propertieslist">
|
61
|
+
<li class="property">
|
62
|
+
<div class="name">version</div>
|
63
|
+
<div class="summary">
|
64
|
+
The version number of your copy of log4javascript.
|
65
|
+
</div>
|
66
|
+
</li>
|
67
|
+
<li class="property">
|
68
|
+
<div class="name">edition</div>
|
69
|
+
<div class="summary">
|
70
|
+
The edition of your copy of log4javascript ("log4javascript_lite" in this case").
|
71
|
+
</div>
|
72
|
+
</li>
|
73
|
+
</ul>
|
74
|
+
<h4>Methods</h4>
|
75
|
+
<ul class="propertieslist">
|
76
|
+
<li class="method">
|
77
|
+
<div class="name">getDefaultLogger</div>
|
78
|
+
<div class="methodsignature"><code>Logger <strong>getDefaultLogger</strong>()</code></div>
|
79
|
+
<div class="summary">
|
80
|
+
Returns the default and only logger (apart from the null logger). The default logger
|
81
|
+
logs to a simple pop-up window.
|
82
|
+
</div>
|
83
|
+
</li>
|
84
|
+
<li class="method">
|
85
|
+
<div class="name">getNullLogger</div>
|
86
|
+
<div class="methodsignature"><code>Logger <strong>getNullLogger</strong>()</code></div>
|
87
|
+
<div class="summary">
|
88
|
+
Returns an empty logger. Useful for disabling all logging.
|
89
|
+
</div>
|
90
|
+
</li>
|
91
|
+
<li class="method">
|
92
|
+
<div class="name">setEnabled</div>
|
93
|
+
<div class="methodsignature"><code>void <strong>setEnabled</strong>(Boolean <em>enabled</em>)</code></div>
|
94
|
+
<div class="paramsheading">Parameters:</div>
|
95
|
+
<ul class="params">
|
96
|
+
<li class="param">
|
97
|
+
<code class="paramname">enabled</code>
|
98
|
+
</li>
|
99
|
+
</ul>
|
100
|
+
<div class="summary">
|
101
|
+
Enables or disables all logging, depending on <code>enabled</code>.
|
102
|
+
</div>
|
103
|
+
</li>
|
104
|
+
<li class="method">
|
105
|
+
<div class="name">isEnabled</div>
|
106
|
+
<div class="methodsignature"><code>Boolean <strong>isEnabled</strong>()</code></div>
|
107
|
+
<div class="summary">
|
108
|
+
Returns true or false depending on whether logging is enabled.
|
109
|
+
</div>
|
110
|
+
</li>
|
111
|
+
<li class="method">
|
112
|
+
<div class="name">setShowStackTraces</div>
|
113
|
+
<div class="methodsignature"><code>void <strong>setShowStackTraces</strong>(Boolean <em>show</em>)</code></div>
|
114
|
+
<div class="paramsheading">Parameters:</div>
|
115
|
+
<ul class="params">
|
116
|
+
<li class="param">
|
117
|
+
<code class="paramname">show</code>
|
118
|
+
</li>
|
119
|
+
</ul>
|
120
|
+
<div class="summary">
|
121
|
+
Enables or disables displaying of error stack traces, depending on <code>show</code>.
|
122
|
+
By default, stack traces are not displayed. (Only works in Firefox)
|
123
|
+
</div>
|
124
|
+
</li>
|
125
|
+
</ul>
|
126
|
+
<p class="linktotop">
|
127
|
+
<a href="#container">Top</a>
|
128
|
+
</p>
|
129
|
+
</div>
|
130
|
+
<div id="levels">
|
131
|
+
<h2>Levels</h2>
|
132
|
+
<p>
|
133
|
+
Levels are available as static properties of the <code>log4javascript.Level</code>
|
134
|
+
object. In ascending order of severity:
|
135
|
+
</p>
|
136
|
+
<ol>
|
137
|
+
<li><code>log4javascript.Level.ALL</code></li>
|
138
|
+
<li><code>log4javascript.Level.TRACE</code></li>
|
139
|
+
<li><code>log4javascript.Level.DEBUG</code></li>
|
140
|
+
<li><code>log4javascript.Level.INFO</code></li>
|
141
|
+
<li><code>log4javascript.Level.WARN</code></li>
|
142
|
+
<li><code>log4javascript.Level.ERROR</code></li>
|
143
|
+
<li><code>log4javascript.Level.FATAL</code></li>
|
144
|
+
<li><code>log4javascript.Level.NONE</code></li>
|
145
|
+
</ol>
|
146
|
+
<p class="linktotop">
|
147
|
+
<a href="#container">Top</a>
|
148
|
+
</p>
|
149
|
+
</div>
|
150
|
+
<div id="loggers">
|
151
|
+
<h2>Loggers</h2>
|
152
|
+
<p>
|
153
|
+
There are only two loggers in log4javascript Lite: the default logger obtained
|
154
|
+
by calling <code>log4javascript.getDefaultLogger()</code> and the empty logger
|
155
|
+
returned by <code>log4javascript.getNullLogger()</code>.
|
156
|
+
</p>
|
157
|
+
<h4>Logger methods</h4>
|
158
|
+
<ul class="propertieslist">
|
159
|
+
<li class="method">
|
160
|
+
<div class="name">setLevel</div>
|
161
|
+
<div class="methodsignature"><code>void <strong>setLevel</strong>(Level <em>level</em>)</code></div>
|
162
|
+
<div class="paramsheading">Parameters:</div>
|
163
|
+
<ul class="params">
|
164
|
+
<li class="param">
|
165
|
+
<code class="paramname">level</code>
|
166
|
+
</li>
|
167
|
+
</ul>
|
168
|
+
<div class="summary">
|
169
|
+
Sets the level. Log messages of a lower level than <code>level</code> will not be logged.
|
170
|
+
Default value is <code>ALL</code> (unlike in log4javascript, where the default level is
|
171
|
+
<code>DEBUG</code>).
|
172
|
+
</div>
|
173
|
+
</li>
|
174
|
+
<li class="method">
|
175
|
+
<div class="name">getLevel</div>
|
176
|
+
<div class="methodsignature"><code>Level <strong>getLevel</strong>()</code></div>
|
177
|
+
<div class="summary">
|
178
|
+
Returns the level for this logger.
|
179
|
+
</div>
|
180
|
+
</li>
|
181
|
+
<li class="method">
|
182
|
+
<div class="name">trace</div>
|
183
|
+
<div class="methodsignature"><code>void <strong>trace</strong>(Object <em>message1</em>[, Object <em>message2</em>, ... ][, Error <em>exception</em>])</code></div>
|
184
|
+
<div class="paramsheading">Parameters:</div>
|
185
|
+
<ul class="params">
|
186
|
+
<li class="param">
|
187
|
+
<code class="paramname">message1[, message2...]</code>
|
188
|
+
</li>
|
189
|
+
<li class="param">
|
190
|
+
<code class="paramname">exception</code>
|
191
|
+
[<em>optional</em>]
|
192
|
+
</li>
|
193
|
+
</ul>
|
194
|
+
<div class="summary">
|
195
|
+
Logs one or more messages and optionally an error at level <code>TRACE</code>.
|
196
|
+
</div>
|
197
|
+
</li>
|
198
|
+
<li class="method">
|
199
|
+
<div class="name">debug</div>
|
200
|
+
<div class="methodsignature"><code>void <strong>debug</strong>(Object <em>message1</em>[, Object <em>message2</em>, ... ][, Error <em>exception</em>])</code></div>
|
201
|
+
<div class="paramsheading">Parameters:</div>
|
202
|
+
<ul class="params">
|
203
|
+
<li class="param">
|
204
|
+
<code class="paramname">message1[, message2...]</code>
|
205
|
+
</li>
|
206
|
+
<li class="param">
|
207
|
+
<code class="paramname">exception</code>
|
208
|
+
[<em>optional</em>]
|
209
|
+
</li>
|
210
|
+
</ul>
|
211
|
+
<div class="summary">
|
212
|
+
Logs one or more messages and optionally an error at level <code>DEBUG</code>.
|
213
|
+
</div>
|
214
|
+
</li>
|
215
|
+
<li class="method">
|
216
|
+
<div class="name">info</div>
|
217
|
+
<div class="methodsignature"><code>void <strong>info</strong>(Object <em>message1</em>[, Object <em>message2</em>, ... ][, Error <em>exception</em>])</code></div>
|
218
|
+
<div class="paramsheading">Parameters:</div>
|
219
|
+
<ul class="params">
|
220
|
+
<li class="param">
|
221
|
+
<code class="paramname">message1[, message2...]</code>
|
222
|
+
</li>
|
223
|
+
<li class="param">
|
224
|
+
<code class="paramname">exception</code>
|
225
|
+
[<em>optional</em>]
|
226
|
+
</li>
|
227
|
+
</ul>
|
228
|
+
<div class="summary">
|
229
|
+
Logs one or more messages and optionally an error at level <code>INFO</code>.
|
230
|
+
</div>
|
231
|
+
</li>
|
232
|
+
<li class="method">
|
233
|
+
<div class="name">warn</div>
|
234
|
+
<div class="methodsignature"><code>void <strong>warn</strong>(Object <em>message1</em>[, Object <em>message2</em>, ... ][, Error <em>exception</em>])</code></div>
|
235
|
+
<div class="paramsheading">Parameters:</div>
|
236
|
+
<ul class="params">
|
237
|
+
<li class="param">
|
238
|
+
<code class="paramname">message1[, message2...]</code>
|
239
|
+
</li>
|
240
|
+
<li class="param">
|
241
|
+
<code class="paramname">exception</code>
|
242
|
+
[<em>optional</em>]
|
243
|
+
</li>
|
244
|
+
</ul>
|
245
|
+
<div class="summary">
|
246
|
+
Logs one or more messages and optionally an error at level <code>WARN</code>.
|
247
|
+
</div>
|
248
|
+
</li>
|
249
|
+
<li class="method">
|
250
|
+
<div class="name">error</div>
|
251
|
+
<div class="methodsignature"><code>void <strong>error</strong>(Object <em>message1</em>[, Object <em>message2</em>, ... ][, Error <em>exception</em>])</code></div>
|
252
|
+
<div class="paramsheading">Parameters:</div>
|
253
|
+
<ul class="params">
|
254
|
+
<li class="param">
|
255
|
+
<code class="paramname">message1[, message2...]</code>
|
256
|
+
</li>
|
257
|
+
<li class="param">
|
258
|
+
<code class="paramname">exception</code>
|
259
|
+
[<em>optional</em>]
|
260
|
+
</li>
|
261
|
+
</ul>
|
262
|
+
<div class="summary">
|
263
|
+
Logs one or more messages and optionally an error at level <code>ERROR</code>.
|
264
|
+
</div>
|
265
|
+
</li>
|
266
|
+
<li class="method">
|
267
|
+
<div class="name">fatal</div>
|
268
|
+
<div class="methodsignature"><code>void <strong>fatal</strong>(Object <em>message1</em>[, Object <em>message2</em>, ... ][, Error <em>exception</em>])</code></div>
|
269
|
+
<div class="paramsheading">Parameters:</div>
|
270
|
+
<ul class="params">
|
271
|
+
<li class="param">
|
272
|
+
<code class="paramname">message1[, message2...]</code>
|
273
|
+
</li>
|
274
|
+
<li class="param">
|
275
|
+
<code class="paramname">exception</code>
|
276
|
+
[<em>optional</em>]
|
277
|
+
</li>
|
278
|
+
</ul>
|
279
|
+
<div class="summary">
|
280
|
+
Logs one or more messages and optionally an error at level <code>FATAL</code>.
|
281
|
+
</div>
|
282
|
+
</li>
|
283
|
+
<li class="method">
|
284
|
+
<div class="name">isEnabledFor</div>
|
285
|
+
<div class="methodsignature"><code>Boolean <strong>isEnabledFor</strong>(Level <em>level</em>, Error <em>exception</em>)</code></div>
|
286
|
+
<div class="paramsheading">Parameters:</div>
|
287
|
+
<ul class="params">
|
288
|
+
<li class="param">
|
289
|
+
<code class="paramname">level</code>
|
290
|
+
</li>
|
291
|
+
</ul>
|
292
|
+
<div class="summary">
|
293
|
+
Returns whether the logger is enabled for the specified level.
|
294
|
+
</div>
|
295
|
+
</li>
|
296
|
+
<li class="method">
|
297
|
+
<div class="name">isTraceEnabled</div>
|
298
|
+
<div class="methodsignature"><code>Boolean <strong>isTraceEnabled</strong>()</code></div>
|
299
|
+
<div class="summary">
|
300
|
+
Returns whether the logger is enabled for <code>TRACE</code> messages.
|
301
|
+
</div>
|
302
|
+
</li>
|
303
|
+
<li class="method">
|
304
|
+
<div class="name">isDebugEnabled</div>
|
305
|
+
<div class="methodsignature"><code>Boolean <strong>isDebugEnabled</strong>()</code></div>
|
306
|
+
<div class="summary">
|
307
|
+
Returns whether the logger is enabled for <code>DEBUG</code> messages.
|
308
|
+
</div>
|
309
|
+
</li>
|
310
|
+
<li class="method">
|
311
|
+
<div class="name">isInfoEnabled</div>
|
312
|
+
<div class="methodsignature"><code>Boolean <strong>isInfoEnabled</strong>()</code></div>
|
313
|
+
<div class="summary">
|
314
|
+
Returns whether the logger is enabled for <code>INFO</code> messages.
|
315
|
+
</div>
|
316
|
+
</li>
|
317
|
+
<li class="method">
|
318
|
+
<div class="name">isWarnEnabled</div>
|
319
|
+
<div class="methodsignature"><code>Boolean <strong>isWarnEnabled</strong>()</code></div>
|
320
|
+
<div class="summary">
|
321
|
+
Returns whether the logger is enabled for <code>WARN</code> messages.
|
322
|
+
</div>
|
323
|
+
</li>
|
324
|
+
<li class="method">
|
325
|
+
<div class="name">isErrorEnabled</div>
|
326
|
+
<div class="methodsignature"><code>Boolean <strong>isErrorEnabled</strong>()</code></div>
|
327
|
+
<div class="summary">
|
328
|
+
Returns whether the logger is enabled for <code>ERROR</code> messages.
|
329
|
+
</div>
|
330
|
+
</li>
|
331
|
+
<li class="method">
|
332
|
+
<div class="name">isFatalEnabled</div>
|
333
|
+
<div class="methodsignature"><code>Boolean <strong>isFatalEnabled</strong>()</code></div>
|
334
|
+
<div class="summary">
|
335
|
+
Returns whether the logger is enabled for <code>FATAL</code> messages.
|
336
|
+
</div>
|
337
|
+
</li>
|
338
|
+
</ul>
|
339
|
+
<p class="linktotop">
|
340
|
+
<a href="#container">Top</a>
|
341
|
+
</p>
|
342
|
+
</div>
|
343
|
+
<div id="enabling">
|
344
|
+
<h2>Enabling / disabling log4javascript Lite</h2>
|
345
|
+
<p>
|
346
|
+
All logging can be enabled or disabled in log4javascript Lite in a number of ways:
|
347
|
+
</p>
|
348
|
+
<ul>
|
349
|
+
<li>
|
350
|
+
At any time, you can call
|
351
|
+
<code>log4javascript.setEnabled(<em>enabled</em>)</code>. This will
|
352
|
+
enable or disable all logging, depending on whether <code>enabled</code>
|
353
|
+
is set to <code>true</code> or <code>false</code>.
|
354
|
+
</li>
|
355
|
+
<li>
|
356
|
+
Assign your logger object a value of <code>log4javascript.getNullLogger()</code>.
|
357
|
+
</li>
|
358
|
+
<li>
|
359
|
+
Replace your copy of log4javascript_lite.js with stubs/log4javascript_lite.js, provided in the
|
360
|
+
distribution. This file has a stub version of each of the functions and methods
|
361
|
+
in the log4javascript Lite API and can simply be dropped in in place of the main file.
|
362
|
+
</li>
|
363
|
+
</ul>
|
364
|
+
<p class="linktotop">
|
365
|
+
<a href="#container">Top</a>
|
366
|
+
</p>
|
367
|
+
</div>
|
368
|
+
</div>
|
369
|
+
<div id="footer">
|
370
|
+
<span class="externallinkinfo">
|
371
|
+
<strong>NB.</strong> All external links open in a new window.
|
372
|
+
</span>
|
373
|
+
Written by Tim Down. <a href="mailto:tim@log4javascript.org">tim@log4javascript.org</a>
|
374
|
+
<br />
|
375
|
+
log4javascript is distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html"
|
376
|
+
title="Apache License, Version 2.0 (opens in new window)" target="_blank">Apache License,
|
377
|
+
Version 2.0</a>
|
378
|
+
|
379
|
+
</div>
|
380
|
+
</div>
|
381
|
+
|
382
|
+
</body>
|
383
|
+
</html>
|
@@ -0,0 +1,230 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
4
|
+
<head>
|
5
|
+
<title>log4javascript quick start tutorial</title>
|
6
|
+
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
|
7
|
+
<meta name="author" content="Tim Down - tim@log4javascript.org" />
|
8
|
+
<meta name="description" content="log4javascript, a logging framework for JavaScript based on log4j" />
|
9
|
+
<meta name="robots" content="all" />
|
10
|
+
<link rel="stylesheet" type="text/css" media="screen,print" href="../main.css" title="Default" />
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<div id="container" class="nonav">
|
14
|
+
<div id="header">
|
15
|
+
<h1><a href="index.html">log4javascript</a></h1>
|
16
|
+
</div>
|
17
|
+
<div id="content">
|
18
|
+
<div id="nav">
|
19
|
+
<a class="navitem" href="../index.html">home</a>
|
20
|
+
| <a class="navitem" href="http://sourceforge.net/projects/log4javascript" target="_blank" title="Download (opens in new window)">download</a>
|
21
|
+
| <a class="navitem" href="index.html">docs</a>
|
22
|
+
| <span class="navitem">quick start</span>
|
23
|
+
| <a class="navitem" href="../demos/index.html">demos</a>
|
24
|
+
| <a class="navitem" href="http://log4javascript.org" target="_blank">website</a>
|
25
|
+
| <a class="navitem" href="http://www.timdown.co.uk" target="_blank">timdown.co.uk</a>
|
26
|
+
</div>
|
27
|
+
<h1>log4javascript quick start tutorial</h1>
|
28
|
+
<h2>Three step guide</h2>
|
29
|
+
<ol>
|
30
|
+
<li>
|
31
|
+
<h3>Download the code</h3>
|
32
|
+
<p>
|
33
|
+
Unzip the distribution and copy log4javascript.js into the desired
|
34
|
+
location. No other files are necessary.
|
35
|
+
</p>
|
36
|
+
</li>
|
37
|
+
<li>
|
38
|
+
<h3>Initialize log4javascript in your web page</h3>
|
39
|
+
<p>
|
40
|
+
Include log4javascript.js in your page using the code below. This
|
41
|
+
code assumes log4javascript is stored in the same directory as
|
42
|
+
your web page.
|
43
|
+
</p>
|
44
|
+
<pre class="code">
|
45
|
+
<script type="text/javascript" src="log4javascript.js"></script>
|
46
|
+
<script type="text/javascript">
|
47
|
+
var log = log4javascript.getDefaultLogger();
|
48
|
+
</script>
|
49
|
+
</pre>
|
50
|
+
<p>
|
51
|
+
The default logger uses a <code><a href="manual.html#popupappender">PopUpAppender</a></code>
|
52
|
+
which opens a pop-up window. By default, this window will open when the first
|
53
|
+
log message is written. For this to work, you will need to disable any pop-up blockers
|
54
|
+
you may have.
|
55
|
+
</p>
|
56
|
+
</li>
|
57
|
+
<li>
|
58
|
+
<h3>Include logging statements in your code</h3>
|
59
|
+
<p>
|
60
|
+
You have six logging methods at your disposal, depending on the severity
|
61
|
+
of the message you wish to log. By default, all messages are logged
|
62
|
+
in the pop-up window. The logging methods are:
|
63
|
+
</p>
|
64
|
+
<ul>
|
65
|
+
<li><code>log.trace(<em>message</em>[, <em>message2</em>, ... ][, <em>exception</em>])</code></li>
|
66
|
+
<li><code>log.debug(<em>message</em>[, <em>message2</em>, ... ][, <em>exception</em>])</code></li>
|
67
|
+
<li><code>log.info(<em>message</em>[, <em>message2</em>, ... ][, <em>exception</em>])</code></li>
|
68
|
+
<li><code>log.warn(<em>message</em>[, <em>message2</em>, ... ][, <em>exception</em>])</code></li>
|
69
|
+
<li><code>log.error(<em>message</em>[, <em>message2</em>, ... ][, <em>exception</em>])</code></li>
|
70
|
+
<li><code>log.fatal(<em>message</em>[, <em>message2</em>, ... ][, <em>exception</em>])</code></li>
|
71
|
+
</ul>
|
72
|
+
<p>
|
73
|
+
And that's it, log away. Below are some examples of common types of logging.
|
74
|
+
</p>
|
75
|
+
</li>
|
76
|
+
</ol>
|
77
|
+
<h2>Logging examples</h2>
|
78
|
+
<ol>
|
79
|
+
<li>
|
80
|
+
<h3>A simple logging message string</h3>
|
81
|
+
<pre class="code">
|
82
|
+
log.info("Hello world");
|
83
|
+
</pre>
|
84
|
+
displays
|
85
|
+
<pre class="console info">
|
86
|
+
19:52:03 INFO - Hello world
|
87
|
+
</pre>
|
88
|
+
</li>
|
89
|
+
<li>
|
90
|
+
<h3>Logging an error with a message</h3>
|
91
|
+
<pre class="code">
|
92
|
+
try {
|
93
|
+
throw new Error("Faking something going wrong!");
|
94
|
+
} catch (e) {
|
95
|
+
log.error("An error occurred", e);
|
96
|
+
}
|
97
|
+
</pre>
|
98
|
+
displays
|
99
|
+
<pre class="console error">
|
100
|
+
19:52:32 ERROR - An error occurred
|
101
|
+
Exception: Faking something going wrong! on line number 80 in file basic.html
|
102
|
+
</pre>
|
103
|
+
</li>
|
104
|
+
<li>
|
105
|
+
<h3>Logging multiple messages with one logging call</h3>
|
106
|
+
<pre class="code">
|
107
|
+
var a = "Hello";
|
108
|
+
var b = 3;
|
109
|
+
log.debug(a, b);
|
110
|
+
</pre>
|
111
|
+
displays
|
112
|
+
<pre class="console debug">
|
113
|
+
19:53:05 DEBUG - Hello 3
|
114
|
+
</pre>
|
115
|
+
</li>
|
116
|
+
<li>
|
117
|
+
<h3>Logging an object</h3>
|
118
|
+
<p>Logging an object:</p>
|
119
|
+
<pre class="code">
|
120
|
+
var obj = new Object();
|
121
|
+
obj.name = "Octopus";
|
122
|
+
obj.tentacles = 8;
|
123
|
+
log.info(obj);
|
124
|
+
</pre>
|
125
|
+
displays
|
126
|
+
<pre class="console info">
|
127
|
+
19:53:17 INFO - {
|
128
|
+
name: Octopus,
|
129
|
+
tentacles: 8
|
130
|
+
}
|
131
|
+
</pre>
|
132
|
+
</li>
|
133
|
+
</ol>
|
134
|
+
<h2>Tweaking the default logger</h2>
|
135
|
+
<p>
|
136
|
+
The default logger is fine as a starting point, but what if you want the default logger
|
137
|
+
with a few different options (say, bringing the pop-up to the front whenever a log message is
|
138
|
+
logged, or having new log messages appear at the top of the pop-up rather than the bottom)?
|
139
|
+
</p>
|
140
|
+
<p>
|
141
|
+
In this case, you will need to create a new logger, then create a
|
142
|
+
<code><a href="manual.html#popupappender">PopUpAppender</a></code>, set options
|
143
|
+
on it, and add it to the logger:
|
144
|
+
</p>
|
145
|
+
<pre class="code">
|
146
|
+
<script type="text/javascript" src="log4javascript.js"></script>
|
147
|
+
<script type="text/javascript">
|
148
|
+
// Create the logger
|
149
|
+
var log = log4javascript.getLogger();
|
150
|
+
|
151
|
+
// Create a PopUpAppender with default options
|
152
|
+
var popUpAppender = new log4javascript.PopUpAppender();
|
153
|
+
|
154
|
+
// Change the desired configuration options
|
155
|
+
popUpAppender.setFocusPopUp(true);
|
156
|
+
popUpAppender.setNewestMessageAtTop(true);
|
157
|
+
|
158
|
+
// Add the appender to the logger
|
159
|
+
log.addAppender(popUpAppender);
|
160
|
+
|
161
|
+
// Test the logger
|
162
|
+
log.debug("Hello world!");
|
163
|
+
</script>
|
164
|
+
</pre>
|
165
|
+
<p>
|
166
|
+
<a href="../examples/example_quickstart_1.html" title="View example (opens in new window)"
|
167
|
+
target="_blank">See this example in action</a> (opens in new window)
|
168
|
+
</p>
|
169
|
+
<p>
|
170
|
+
Refer to the manual for more information about
|
171
|
+
<a href="manual.html#configuration">configuring appenders</a> and more
|
172
|
+
details about <code><a href="manual.html#popupappender">PopUpAppender</a></code>.
|
173
|
+
</p>
|
174
|
+
<h2>Sending log messages to the server</h2>
|
175
|
+
<p>
|
176
|
+
For this you will need to use an <code><a href="manual.html#ajaxappender">AjaxAppender</a></code>
|
177
|
+
as follows:
|
178
|
+
</p>
|
179
|
+
<pre class="code">
|
180
|
+
var ajaxAppender = new log4javascript.AjaxAppender(<em>URL</em>);
|
181
|
+
log.addAppender(ajaxAppender);
|
182
|
+
</pre>
|
183
|
+
<p>
|
184
|
+
Now your log messages will appear in the pop-up window and be sent
|
185
|
+
asynchronously to the URL you specify in the form of HTTP post parameters.
|
186
|
+
No server-side code to process these requests is provided with log4javascript.
|
187
|
+
</p>
|
188
|
+
<p>
|
189
|
+
See <code><a href="manual.html#ajaxappender">AjaxAppender</a></code> for more details
|
190
|
+
on formatting log messages.
|
191
|
+
</p>
|
192
|
+
<h2>Changing the format of log messages</h2>
|
193
|
+
<p>
|
194
|
+
Using a <code><a href="manual.html#layouts">Layout</a></code>, you can
|
195
|
+
format log messages however you like. For example:
|
196
|
+
</p>
|
197
|
+
<pre class="code">
|
198
|
+
var log = log4javascript.getLogger("mylogger");
|
199
|
+
var popUpAppender = new log4javascript.PopUpAppender();
|
200
|
+
var layout = new log4javascript.PatternLayout("[%-5p] %m");
|
201
|
+
popUpAppender.setLayout(layout);
|
202
|
+
</pre>
|
203
|
+
<p>A call to</p>
|
204
|
+
<pre class="code">
|
205
|
+
log.debug("Hello world");
|
206
|
+
</pre>
|
207
|
+
<p>will now result in output in the pop-up window of </p>
|
208
|
+
<pre class="console debug">
|
209
|
+
[DEBUG] Hello world
|
210
|
+
</pre>
|
211
|
+
<p>
|
212
|
+
See <code><a href="manual.html#patternlayout">PatternLayout</a></code> for more details
|
213
|
+
on formatting log messages.
|
214
|
+
</p>
|
215
|
+
</div>
|
216
|
+
<div id="footer">
|
217
|
+
<span class="externallinkinfo">
|
218
|
+
<strong>NB.</strong> All external links open in a new window.
|
219
|
+
</span>
|
220
|
+
Written by Tim Down. <a href="mailto:tim@log4javascript.org">tim@log4javascript.org</a>
|
221
|
+
<br />
|
222
|
+
log4javascript is distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html"
|
223
|
+
title="Apache License, Version 2.0 (opens in new window)" target="_blank">Apache License,
|
224
|
+
Version 2.0</a>
|
225
|
+
|
226
|
+
</div>
|
227
|
+
</div>
|
228
|
+
|
229
|
+
</body>
|
230
|
+
</html>
|