2022-11-15 09:18:37 +00:00
|
|
|
pragma Strict
|
|
|
|
import QtQml
|
|
|
|
|
|
|
|
LoggingCategory {
|
|
|
|
id: self
|
|
|
|
name: "foobar"
|
2025-06-26 13:05:52 +00:00
|
|
|
|
|
|
|
// tests sequence handling
|
|
|
|
function xyz() {
|
|
|
|
const d = [1, 2, 3, 4, 5];
|
|
|
|
const contained = d.includes(3);
|
|
|
|
console.log(d, contained);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-15 09:18:37 +00:00
|
|
|
Component.onCompleted: {
|
|
|
|
console.debug("b", 4.55);
|
|
|
|
console.log("b", 4.55);
|
|
|
|
console.info("b", 4.55);
|
|
|
|
console.warn("b", 4.55);
|
|
|
|
console.error("b", 4.55);
|
|
|
|
console.debug(self, "b", 4.55);
|
|
|
|
console.log(self, "b", 4.55);
|
|
|
|
console.info(self, "b", 4.55);
|
|
|
|
console.warn(self, "b", 4.55);
|
|
|
|
console.error(self, "b", 4.55);
|
|
|
|
console.debug(Component, "b", 4.55);
|
|
|
|
console.log(Component, "b", 4.55);
|
|
|
|
console.info(Component, "b", 4.55);
|
|
|
|
console.warn(Component, "b", 4.55);
|
|
|
|
console.error(Component, "b", 4.55);
|
|
|
|
|
|
|
|
console.log("a", undefined, "b", false, null, 7);
|
|
|
|
console.log();
|
|
|
|
console.log(4)
|
|
|
|
console.log(self);
|
|
|
|
console.log(Component);
|
2025-06-26 13:05:52 +00:00
|
|
|
|
|
|
|
self.xyz()
|
2022-11-15 09:18:37 +00:00
|
|
|
}
|
|
|
|
}
|