akshattandon / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

@Slf4j should generate LOG instead of log as it generates a constant #767

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use @Slf4j on a type
2. the Logger is exposed via a variable named "log"

What is the expected output? What do you see instead?

The variable should be named LOG as it is a constant effectively. As I see this 
could break existing code, maybe an attribute can be added to the annotation to 
switch to the constant style?

What version of the product are you using? On what operating system?

1.14.8, Mac OSX.

Original issue reported on code.google.com by ogie...@pivotal.io on 13 Jan 2015 at 10:16

GoogleCodeExporter commented 9 years ago
No, read issue 400 for more details, but you can by using `lombok.config` if 
you still think is should be called `LOG`.

Original comment by r.spilker on 13 Jan 2015 at 12:29