APISonar


org.netbeans.modules.web.common.api.UsageLogger.log

> org > netbeans > modules > web > common > api > UsageLogger > log
org APIs netbeans APIs modules APIs web APIs common APIs api APIs UsageLogger APIs log APIs

Example 1
private final UsageLogger testConfigUsageLogger = new UsageLogger.Builder(PhpProjectUtils.USAGE_LOGGER_NAME)
            .message(PhpProjectUtils.class, "USG_TEST_CONFIG_PHP") // NOI18N
            .firstMessageOnly(false)
            .create();

    private void logPhpTestConfig(List<String> testingProviders) {
        assert testingProviders != null;
        LOGGER.finest("Usage logging for PHP test config");
        testConfigUsageLogger.log(StringUtils.implode(testingProviders, "|")); // NOI18N
    }
Example 2
private static final UsageLogger USAGE_LOGGER = new UsageLogger.Builder("org.netbeans.ui.metrics.javascript.cdnjs")  // NOI18N
            .firstMessageOnly(false)
            .create();

    private static void logLibraryUsage(Library.Version[] libraries) {
        // ui usage
        USAGE_LOGGER.log(LibraryPersistence.class, "USG_CDNJS_LIBRARY_EDIT"); // NOI18N
        // libraries
        for (Library.Version library : libraries) {
            String version = library.getName();
            String name = library.getLibrary().getName();
            USAGE_LOGGER.log(LibraryPersistence.class, "USG_CDNJS_LIBRARY", name, version); // NOI18N
        }
    }
Example 3
private final UsageLogger jsTestRunUsageLogger = UsageLogger.jsTestRunUsageLogger(ClientSideProjectUtilities.USAGE_LOGGER_NAME);

    void invokeActionInternal(Lookup context) {
        JsTestingProvider testingProvider = project.getJsTestingProvider(true);
        if (testingProvider != null) {
            jsTestRunUsageLogger.log(ClientSideProjectType.TYPE, testingProvider.getIdentifier());
            TestRunInfo testRunInfo = new TestRunInfo.Builder()
                    .build();
            testingProvider.runTests(project, testRunInfo);
        }
    }
Example 4
private final UsageLogger jsTestRunUsageLogger = UsageLogger.jsTestRunUsageLogger(PhpProjectUtils.USAGE_LOGGER_NAME);

    private void logJsTestRun(JsTestingProvider jsTestingProvider) {
        assert jsTestingProvider != null;
        jsTestRunUsageLogger.log(PhpProjectType.TYPE, jsTestingProvider.getIdentifier());
    }
Example 5
final UsageLogger projectBrowserUsageLogger = UsageLogger.projectBrowserUsageLogger(ClientSideProjectUtilities.USAGE_LOGGER_NAME);

    public void logBrowserUsage() {
        WebBrowser webBrowser = getProjectWebBrowser();
        projectBrowserUsageLogger.log(ClientSideProjectType.TYPE, webBrowser.getId(), webBrowser.getBrowserFamily().name());
    }