@Before("call(* com.arpnetworking.steno.LogBuilder.log())")
    public void addToContextLineAndMethod(final JoinPoint joinPoint) {
        final SourceLocation sourceLocation = joinPoint.getSourceLocation();
        final LogBuilder targetLogBuilder = (LogBuilder) joinPoint.getTarget();
        targetLogBuilder.addContext("line", String.valueOf(sourceLocation.getLine()));
        targetLogBuilder.addContext("file", sourceLocation.getFileName());
        targetLogBuilder.addContext("class", sourceLocation.getWithinType());
    }
@Before("call(* com.arpnetworking.steno.LogBuilder.log())")
    public void addToContextLineAndMethod(final JoinPoint joinPoint) {
        final SourceLocation sourceLocation = joinPoint.getSourceLocation();
        final LogBuilder targetLogBuilder = (LogBuilder) joinPoint.getTarget();
        targetLogBuilder.addContext("line", String.valueOf(sourceLocation.getLine()));
        targetLogBuilder.addContext("file", sourceLocation.getFileName());
        targetLogBuilder.addContext("class", sourceLocation.getWithinType());
    }
@ Before ( "call(* com.arpnetworking.steno.LogBuilder.log())" ) public void addToContextLineAndMethod ( final JoinPoint joinPoint ) { final SourceLocation sourceLocation = joinPoint . getSourceLocation ( ) ; final LogBuilder targetLogBuilder = ( LogBuilder ) joinPoint . getTarget ( ) ; targetLogBuilder . addContext ( "line" , String . valueOf ( sourceLocation . getLine ( ) ) ) ; targetLogBuilder . addContext ( "file" , sourceLocation . getFileName ( ) ) ; targetLogBuilder . addContext ( "class" , sourceLocation . getWithinType ( ) ) ; }
Before outputting the message inject additional context.

@param joinPoint The <code>JoinPoint</code>.
Before outputting the message inject additional context .