Socket
Socket
Sign inDemoInstall

@ui5/logger

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui5/logger - npm Package Compare versions

Comparing version 3.0.1-rc.1 to 3.0.1-rc.2

6

CHANGELOG.md

@@ -5,4 +5,7 @@ # Changelog

A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v3.0.1-rc.1...HEAD).
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v3.0.1-rc.2...HEAD).
<a name="v3.0.1-rc.2"></a>
## [v3.0.1-rc.2] - 2023-01-24
<a name="v3.0.1-rc.1"></a>

@@ -147,2 +150,3 @@ ## [v3.0.1-rc.1] - 2023-01-18

[v3.0.1-rc.2]: https://github.com/SAP/ui5-logger/compare/v3.0.1-rc.1...v3.0.1-rc.2
[v3.0.1-rc.1]: https://github.com/SAP/ui5-logger/compare/v3.0.1-rc.0...v3.0.1-rc.1

@@ -149,0 +153,0 @@ [v3.0.1-rc.0]: https://github.com/SAP/ui5-logger/compare/v3.0.1-beta.1...v3.0.1-rc.0

80

lib/index.js

@@ -9,46 +9,44 @@ import Logger from "./loggers/Logger.js";

*/
export default {
/**
* Convenience function to create an instance of [@ui5/logger/loggers/Logger]{@link @ui5/logger/loggers/Logger}
*
* @public
* @param {string} moduleName Identifier for messages created by the logger.
* Example: <code>module:submodule:Class</code>
* @returns {@ui5/logger/loggers/Logger}
*/
getLogger: (moduleName) => {
return new Logger(moduleName);
},
/**
* Convenience function to create an instance of [@ui5/logger/loggers/Logger]{@link @ui5/logger/loggers/Logger}
*
* @public
* @param {string} moduleName Identifier for messages created by the logger.
* Example: <code>module:submodule:Class</code>
* @returns {@ui5/logger/Logger}
*/
export function getLogger(moduleName) {
return new Logger(moduleName);
}
/**
* Tests whether the provided log level is enabled by the current log level
*
* @public
* @function
* @param {string} levelName Log level to test
* @returns {boolean} True if the provided level is enabled
*/
isLevelEnabled: Logger.isLevelEnabled,
/**
* Tests whether the provided log level is enabled by the current log level
*
* @public
* @function
* @param {string} levelName Log level to test
* @returns {boolean} True if the provided level is enabled
*/
export const isLogLevelEnabled = Logger.isLevelEnabled;
/**
* Sets the standard log level.
* <br>
* <b>Example:</b> Setting it to <code>perf</code> would suppress all <code>silly</code> and <code>verbose</code>
* logging, and only show <code>perf</code>, <code>info</code>, <code>warn</code> and <code>error</code> logs.
*
* @public
* @function
* @param {string} levelName New log level
*/
setLevel: Logger.setLevel,
/**
* Sets the standard log level.
* <br>
* <b>Example:</b> Setting it to <code>perf</code> would suppress all <code>silly</code> and <code>verbose</code>
* logging, and only show <code>perf</code>, <code>info</code>, <code>warn</code> and <code>error</code> logs.
*
* @public
* @function
* @param {string} levelName New log level
*/
export const setLogLevel = Logger.setLevel;
/**
* Gets the current log level
*
* @public
* @function
* @returns {string} The current log level. Defaults to <code>info</code>
*/
getLevel: Logger.getLevel,
};
/**
* Gets the current log level
*
* @public
* @function
* @returns {string} The current log level. Defaults to <code>info</code>
*/
export const getLogLevel = Logger.getLevel;

@@ -5,3 +5,3 @@ import process from "node:process";

// Module name must not contain any other characters than alphanumerical and some specials
const rIllegalModuleNameChars = /[^0-9a-zA-Z-_:@.]/i;
const rIllegalModuleNameChars = /[^0-9a-zA-Z-_:@./]/i;

@@ -19,3 +19,3 @@ /**

* @class
* @alias @ui5/logger/loggers/Logger
* @alias @ui5/logger/Logger
*/

@@ -22,0 +22,0 @@ class Logger {

{
"name": "@ui5/logger",
"version": "3.0.1-rc.1",
"version": "3.0.1-rc.2",
"description": "UI5 Tooling - Internal Logger",

@@ -22,3 +22,3 @@ "author": {

".": "./lib/index.js",
"./loggers/Logger": "./lib/loggers/Logger.js",
"./Logger": "./lib/loggers/Logger.js",
"./writers/*": "./lib/writers/*.js",

@@ -50,3 +50,3 @@ "./package.json": "./package.json",

"release-note": "git-chglog --sort semver -c .chglog/release-config.yml v$npm_package_version",
"depcheck": "depcheck --ignores @ui5/logger,docdash,@istanbuljs/esm-loader-hook"
"depcheck": "depcheck --ignores @ui5/logger,rimraf,docdash,@istanbuljs/esm-loader-hook"
},

@@ -127,8 +127,8 @@ "files": [

"eslint-config-google": "^0.14.0",
"eslint-plugin-ava": "^13.2.0",
"eslint-plugin-jsdoc": "^39.6.4",
"eslint-plugin-ava": "^14.0.0",
"eslint-plugin-jsdoc": "^39.6.7",
"jsdoc": "^3.6.11",
"nyc": "^15.1.0",
"open-cli": "^7.1.0",
"rimraf": "^3.0.2",
"rimraf": "^4.1.1",
"sinon": "^15.0.1",

@@ -135,0 +135,0 @@ "strip-ansi": "^7.0.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc