Uploaded image for project: 'Solder'
  1. Solder
  2. SOLDER-82

Allow category for typed loggers to be defaulted

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • Minor
    • Resolution: Done
    • 3.0.0.CR2
    • 3.0.0.Final
    • Logging
    • None

    Description

      Currently, the category must be specified at the injection point of a typed logger.

      throw new IllegalStateException("Must specify @Category or @TypedCategory for typed loggers at [" + injectionPoint + "]");

      This is too restrictive. It's well established that if a category is not specified, it should default to the fully-qualified name of the containing class. This should be permitted:

      package com.acme;

      public class MyService {
      @Inject
      private ServiceLogger log;
      }

      The category would be set to com.acme.MyService

      Attachments

        Activity

          People

            meetoblivion_jira John Ament (Inactive)
            dan.j.allen Dan Allen (Inactive)
            Archiver:
            samahaja@redhat.com Sagar Mahajan

            Dates

              Created:
              Updated:
              Resolved:
              Archived: