refactor: rename project
parent
400dd25f49
commit
2cc8cdb506
@ -1,8 +1,8 @@
|
|||||||
package me.goudham.trace.annotation;
|
package me.goudham.micronaut.trace.annotation;
|
||||||
|
|
||||||
import io.micronaut.aop.Around;
|
import io.micronaut.aop.Around;
|
||||||
import jakarta.inject.Qualifier;
|
import jakarta.inject.Qualifier;
|
||||||
import me.goudham.trace.shared.TimeInterpreter;
|
import me.goudham.micronaut.trace.shared.TimeInterpreter;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
@ -1,8 +1,8 @@
|
|||||||
package me.goudham.trace.annotation;
|
package me.goudham.micronaut.trace.annotation;
|
||||||
|
|
||||||
import io.micronaut.aop.Around;
|
import io.micronaut.aop.Around;
|
||||||
import jakarta.inject.Qualifier;
|
import jakarta.inject.Qualifier;
|
||||||
import me.goudham.trace.shared.TraceInterpreter;
|
import me.goudham.micronaut.trace.shared.TraceInterpreter;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
@ -0,0 +1,19 @@
|
|||||||
|
package me.goudham.micronaut.trace.domain;
|
||||||
|
|
||||||
|
import me.goudham.micronaut.trace.service.LoggingService;
|
||||||
|
import me.goudham.micronaut.trace.shared.TimeInterpreter;
|
||||||
|
import me.goudham.micronaut.trace.shared.TraceInterpreter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents each type that's used for logging
|
||||||
|
*
|
||||||
|
* @see LoggingService
|
||||||
|
* @see TraceInterpreter
|
||||||
|
* @see TimeInterpreter
|
||||||
|
*/
|
||||||
|
public enum LogType {
|
||||||
|
ENTERING,
|
||||||
|
EXITING,
|
||||||
|
ERROR,
|
||||||
|
EXECUTION_TIME
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
package me.goudham.trace.service;
|
package me.goudham.micronaut.trace.service;
|
||||||
|
|
||||||
import jakarta.inject.Singleton;
|
import jakarta.inject.Singleton;
|
||||||
import me.goudham.trace.domain.LogType;
|
import me.goudham.micronaut.trace.domain.LogType;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package me.goudham.trace.shared;
|
package me.goudham.micronaut.trace.shared;
|
||||||
|
|
||||||
import io.micronaut.aop.MethodInterceptor;
|
import io.micronaut.aop.MethodInterceptor;
|
||||||
import io.micronaut.aop.MethodInvocationContext;
|
import io.micronaut.aop.MethodInvocationContext;
|
||||||
import me.goudham.trace.service.LoggingService;
|
import me.goudham.micronaut.trace.service.LoggingService;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
@ -1,11 +1,11 @@
|
|||||||
package me.goudham.trace.shared;
|
package me.goudham.micronaut.trace.shared;
|
||||||
|
|
||||||
import io.micronaut.aop.MethodInvocationContext;
|
import io.micronaut.aop.MethodInvocationContext;
|
||||||
import jakarta.inject.Inject;
|
import jakarta.inject.Inject;
|
||||||
import jakarta.inject.Singleton;
|
import jakarta.inject.Singleton;
|
||||||
import me.goudham.trace.annotation.Time;
|
import me.goudham.micronaut.trace.annotation.Time;
|
||||||
import me.goudham.trace.domain.LogType;
|
import me.goudham.micronaut.trace.domain.LogType;
|
||||||
import me.goudham.trace.service.LoggingService;
|
import me.goudham.micronaut.trace.service.LoggingService;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
package me.goudham.trace.shared;
|
package me.goudham.micronaut.trace.shared;
|
||||||
|
|
||||||
import io.micronaut.aop.MethodInvocationContext;
|
import io.micronaut.aop.MethodInvocationContext;
|
||||||
import jakarta.inject.Inject;
|
import jakarta.inject.Inject;
|
||||||
import jakarta.inject.Singleton;
|
import jakarta.inject.Singleton;
|
||||||
import me.goudham.trace.annotation.Trace;
|
import me.goudham.micronaut.trace.annotation.Trace;
|
||||||
import me.goudham.trace.domain.LogType;
|
import me.goudham.micronaut.trace.service.LoggingService;
|
||||||
import me.goudham.trace.service.LoggingService;
|
import me.goudham.micronaut.trace.domain.LogType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Intercepts the annotated method and logs out when it
|
* Intercepts the annotated method and logs out when it
|
@ -1,19 +0,0 @@
|
|||||||
package me.goudham.trace.domain;
|
|
||||||
|
|
||||||
import me.goudham.trace.shared.TimeInterpreter;
|
|
||||||
import me.goudham.trace.shared.TraceInterpreter;
|
|
||||||
import me.goudham.trace.service.LoggingService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Represents each type that's used for logging
|
|
||||||
*
|
|
||||||
* @see LoggingService
|
|
||||||
* @see TraceInterpreter
|
|
||||||
* @see TimeInterpreter
|
|
||||||
*/
|
|
||||||
public enum LogType {
|
|
||||||
ENTERING,
|
|
||||||
EXITING,
|
|
||||||
ERROR,
|
|
||||||
EXECUTION_TIME
|
|
||||||
}
|
|
@ -1,3 +1,3 @@
|
|||||||
micronaut:
|
micronaut:
|
||||||
application:
|
application:
|
||||||
name: trace
|
name: micronaut-trace
|
Loading…
Reference in New Issue