@@ -60,22 +60,6 @@ static SdkLogger create(
6060 }
6161
6262 @ Override
63- public LogRecordBuilder logRecordBuilder () {
64- if (loggerEnabled ) {
65- return INCUBATOR_AVAILABLE
66- ? IncubatingUtil .createExtendedLogRecordBuilder (
67- loggerSharedState , instrumentationScopeInfo , this )
68- : new SdkLogRecordBuilder (loggerSharedState , instrumentationScopeInfo , this );
69- }
70- return NOOP_LOGGER .logRecordBuilder ();
71- }
72-
73- // VisibleForTesting
74- InstrumentationScopeInfo getInstrumentationScopeInfo () {
75- return instrumentationScopeInfo ;
76- }
77-
78- // Visible for testing
7963 public boolean isEnabled (Severity severity , Context context ) {
8064 if (!loggerEnabled ) {
8165 return false ;
@@ -96,6 +80,22 @@ public boolean isEnabled(Severity severity, Context context) {
9680 return true ;
9781 }
9882
83+ @ Override
84+ public LogRecordBuilder logRecordBuilder () {
85+ if (loggerEnabled ) {
86+ return INCUBATOR_AVAILABLE
87+ ? IncubatingUtil .createExtendedLogRecordBuilder (
88+ loggerSharedState , instrumentationScopeInfo , this )
89+ : new SdkLogRecordBuilder (loggerSharedState , instrumentationScopeInfo , this );
90+ }
91+ return NOOP_LOGGER .logRecordBuilder ();
92+ }
93+
94+ // VisibleForTesting
95+ InstrumentationScopeInfo getInstrumentationScopeInfo () {
96+ return instrumentationScopeInfo ;
97+ }
98+
9999 void updateLoggerConfig (LoggerConfig loggerConfig ) {
100100 loggerEnabled = loggerConfig .isEnabled ();
101101 minimumSeverity = loggerConfig .getMinimumSeverity ();
0 commit comments