PackagePackagetypeA library you install and call yourself.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

srbjslogger

A browser JavaScript logger whose log, warn and error calls write prominent output to the console, loaded into a UI5 app through index.html or the manifest's resources.

Its author wanted the console output of UI5 applications to stand out from standard log output. init(scope, topic, opt) sets a scope and a topic for every message, log, warn and error print them as prominent console output, and developer(showQrCode, customObject) logs environment details such as the browser and screen size, optionally as a QR code that carries the data and any custom fields. In a UI5 app it is instantiated after the index.html bootstrap, or listed in the resources section of the manifest when the app does not start from index.html. Everything it writes goes to the browser console.

Facts

Latestv1.5.1ReleasedLast pushLicenceMIT

Where it sits

Lives in
Provides
LoggingUI5LoggingcapabilitySeeing what a running service did, in a form something can read afterwards — levels, a formatter that suits a laptop and one that suits a log service.

Who is behind it

Michael HenningerMichael HenningerPersonMaintains this
In the atlas: maintains 2, contributes to 2
@michaelhenningersrb
SRB Consulting TeamSRB Consulting TeamOrganisationMaintains this
In the atlas: maintains 2
@SRBConsultingTeam
maintainers

Before choosing this

Signals

ActivityQuietRelease and repository quiet for 37 months

Both observable publication channels have been quiet for at least 24 full months. This may be normal for stable software; check whether its current state still fits your use.

What it declares

Every artifact

Type
Package
Origin
Independently maintained

As a package

Where it runs
Inside its host
Distributed through
does not say

Connections1

Install

npm add srbjslogger

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from SRBConsultingTeam/SRBJSLogger under MIT, read
SRBConsultingTeam/SRBJSLogger/README.mdOn GitHub

SRBJSLogger



Motivation

A while ago I came across this very interesting blog.

I immediately noticed that the content of the Browser Developer Console certainly does not correspond to what I was previously familiar with

Of course, I was intrigued and wanted to try and spice up the content of the browser console a bit myself.

Of course with the ulterior motive that I wanted to better separate the log outputs of our UI5 applications from standard log outputs anyway. It should also be easier for our customers to distinguish really important logs from "standard warnings" etc.

Said and done. The result of my considerations is the following library.

Features:
A number of JS methods that allow us to create very prominent log outputs.
With the creation of the library, I also implemented a requirement that was long overdue. With the command SRBJSLogger.developer(true, {obi: "wan kenobi"}); very important details for us are displayed in the browser log. Among other things, "which browser is used", "screen size" etc. A very nice feature is setting the first parameter to true. If this parameter is activated, the browser console provides a QR code with the content of the most important application information. ( Additional data can also be packed into the QR code - see "Obi Wan Kenobi" )

Getting started

Initialize the SRBJSLogger via the NPM CDN:

For initializing the Logger via CDN, simply copy and paste the following in the index file of the HTML5 app:

<script src="https://npmcdn.com/srbjslogger/SRBJSLogger.min.js"></script>

Initialize the SRBJSLogger via downloading the latest version:

Download the latest minified version from here. Place that file into a directory of the app's folder structure, where it can access that file. For UI5 apps, using the index.html bootrapping, instantiate the Logger like above via

<script src="/path/to/SRBJSLogger.min.js"></script>

For UI5 apps, not using the index.html startup logic, paste the following in the ressources section of the manifest file:

"resources": { "js": [ { "uri": "path/to/SRBJSLogger.min.js" } ] }

Initialize the Logger temporarily via the browsers console. Just copy, paste and execute the following snippet in the browsers console:

var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://npmcdn.com/srbjslogger/SRBJSLogger.min.js';
script.addEventListener("load", function() { SRBJSLogger.getVersionInfo(); });
    
document.head.appendChild(script);

\

Documentation

The init function
SRBJSLogger.init("SCOPE","TOPIC",{verbose: true})

Execute Open the console to see the result

Parameters

init(scope[String], topic[String], opt[{}])

  • scope

    Sets the scope of all log messages

  • topic

    Sets the topic of all log messages

  • opt

    • This variable has to contain an object or undefined. Setting the object property verbose to true, logs a badge, after the init function is processed.

The log function
SRBJSLogger.log("Title", "My message", { scope: "testscope", topic: "testtopic" })

Execute Open the console to see the result

Parameters

init(title[String], message[String], opt[{}])

  • title

    Sets the title ( left ) of the badge

  • message

    Sets the message ( left ) of the badge

  • opt

    • This variable has to contain an object or undefined. Setting the propeties scope and/or topic, of this object, overwirtes state and topic, if they were set via the init method



Results in


The error function
SRBJSLogger.error("Title", "My message", { scope: "testscope", topic: "testtopic" })

Execute Open the console to see the result

Parameters

init(title[String], message[String], opt[{}])

  • title

    Sets the title ( left ) of the badge

  • message

    Sets the message ( left ) of the badge

  • opt

    • This variable has to contain an object or undefined. Setting the propeties scope and/or topic, of this object, overwirtes state and topic, if they were set via the init method



Results in


The warn function
SRBJSLogger.warn("Title", "My message", { scope: "testscope", topic: "testtopic" })

Execute Open the console to see the result

Parameters

init(title[String], message[String], opt[{}])

  • title

    Sets the title ( left ) of the badge

  • message

    Sets the message ( left ) of the badge

  • opt

    • This variable has to contain an object or undefined. Setting the propeties scope and/or topic, of this object, overwirtes state and topic, if they were set via the init method



Results in


The getVersionInfo function
SRBJSLogger.getVersionInfo()

Execute Open the console to see the result

Results in


The developer function
SRBJSLogger.developer(true, {obi: "wan kenobi"});

Execute Open the console to see the result

Parameters

developer(showQrCode[true|false], customObject[{}])

  • showQrCode

    Displays a QRCode in the console if a value is provided resulting in true

  • customObject

    Supply a object here. The object is appended in the logoutput and also in the QRCode data like in the example below



Results in


MIT, read

History

Latest

v1.5.1

  1. v1.5.0

  2. v1.4.7

  3. v1.4.6

  4. v1.4.5

  5. v1.4.4

  6. v1.4.3

  7. v1.4.2

  8. v1.4.1

  9. v1.4.0

  10. v1.3.17

  11. v1.3.16

  12. v1.3.15

  13. v1.3.14

  14. v1.3.13

  15. v1.3.12

  16. v1.3.11

  17. v1.3.10

  18. v1.3.9

  19. v1.3.8

  20. v1.3.7

  21. v1.3.6

  22. v1.3.5

  23. v1.3.4

  24. v1.3.3

  25. v1.3.2

  26. v1.3.1

  27. v1.2.1

  28. v1.2.0

  29. v1.1.0

  30. v1.0.0

On npm
12downloads per week, npm
Weekly downloads for srbjslogger26 complete calendar weeks from 2026-04-20 to 2026-10-18; the latest total is 12.20 Apr – 26 Apr: 5227 Apr – 3 May: 404 May – 10 May: 7211 May – 17 May: 7218 May – 24 May: 5125 May – 31 May: 211 Jun – 7 Jun: 508 Jun – 14 Jun: 1315 Jun – 21 Jun: 2822 Jun – 28 Jun: 3929 Jun – 5 Jul: 146 Jul – 12 Jul: 2113 Jul – 19 Jul: 2020 Jul – 26 Jul: 11927 Jul – 2 Aug: 283 Aug – 9 Aug: 5210 Aug – 16 Aug: 4517 Aug – 23 Aug: 2524 Aug – 30 Aug: 3531 Aug – 6 Sept: 67 Sept – 13 Sept: 3414 Sept – 20 Sept: 921 Sept – 27 Sept: 5328 Sept – 4 Oct: 195 Oct – 11 Oct: 5212 Oct – 18 Oct: 12
Logging
  1. ABAP-LoggerLogging library for ABAP over the Application Logfrom ABAP
  2. abap-log-exporterExports Business Application Log entries to Graylog or Lokifrom ABAP
  3. ABAP-PRCFramework for multi-step ABAP processes with monitoringfrom ABAP
  4. SAP Application Logging service for SAP BTPCollects Cloud Foundry or Kyma logs into a searchable Kibanafrom BTP/BAIP
  5. SAP Cloud LoggingOpenSearch-based store for logs, metrics and tracesfrom BTP/BAIP
  6. com.sap.cds:cds-services-bomMaven bill of materials pinning CAP Java module versionsfrom CAP
  7. @cap-js/audit-loggingCAP integration with the SAP Audit Log servicefrom CAP
  8. abap-logABAP logging library with one interface across output targetsfrom ABAP
  9. ABAP_LOGGINGObject-oriented wrapper around the Business Application Logfrom ABAP
  10. abap-cloud-loggerChainable logger for ABAP Cloud around CL_BALI_LOGfrom ABAP
  11. abap-fm-loggerLogger storing RFC function module call parameters as JSONfrom ABAP
  12. openui5-error-collectorUI5 library collecting an app's JavaScript errorsfrom UI5
  13. open-abap-balApplication logging for ABAP transpiled to JavaScript on Node.jsfrom ABAP
  14. @openui5/sap.ui.coreFramework core: module loader, MVC runtime, binding, routing, themingfrom UI5
  15. abap-fluentdFluentd client in ABAP for sending log lines to a collectorfrom ABAP
  16. @saptools/cf-logsLog fetcher and parser for one Cloud Foundry appfrom BTP/BAIP
  17. @saptools/cf-tailMerged log tail of every started app in a Cloud Foundry spacefrom BTP/BAIP
  18. sap-usi-logging-apiObject-oriented wrapper around SAP's Application Log (SLG1)from ABAP
  19. abap-message-loggerMessage logger for ABAP Cloud that saves to the Application Logfrom ABAP

Details

Sources4
Added by handdiscovered herechecked
npm registry, srbjsloggerversion, releases, installschecked
github.com/git+https://github.com/SRBConsultingTeam/SRBJSLogger.gittree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
latestv1.5.1
first release
releases and cadence31, ~0d median
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainui5, developer-experience
History in the atlas2
  1. Listed on bestofui5.org and absent from the atlas. Entered on the README's motivation sentence, "I wanted to better separate the log outputs of our UI5 applications" (excerpt), and its UI5 setup steps; the npm description alone, "SRB logging library for javascript", names no stack. No provides edge: the logging capability lists no UI5 door.
  2. First seen.
For your agent
Ref
artifact:srbconsultingteam-srbjslogger
JSON
/artifacts/srbconsultingteam-srbjslogger.json
MCP
Connecting an agent