[
https://issues.jboss.org/browse/SOLDER-82?page=com.atlassian.jira.plugin....
]
John Ament updated SOLDER-82:
-----------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Added same level of logic from logger producer to typed logger producer. made one method
static package level to be able to get raw type.
Allow category for typed loggers to be defaulted
------------------------------------------------
Key: SOLDER-82
URL:
https://issues.jboss.org/browse/SOLDER-82
Project: Seam Solder
Issue Type: Enhancement
Components: Logging
Affects Versions: 3.0.0.CR2
Reporter: Dan Allen
Assignee: John Ament
Priority: Minor
Fix For: 3.0.0.Final
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
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira