This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
volumes: | |
kong_data: {} | |
networks: | |
kong-net: | |
services: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB::listen(function(QueryExecuted $query){ | |
Logger( | |
vsprintf(str_replace('?', '%s', $query->sql), collect($query->bindings)->map(function($binding){ | |
return is_numeric($binding) ? $binding : "'{$binding}'"; | |
})->toArray()) | |
); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR}) | |
public @interface Bd2 { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from http://www.goinggo.net/2013/11/using-log-package-in-go.html | |
import ( | |
"io" | |
"log" | |
) | |
var ( | |
_TRACE *log.Logger | |
_INFO *log.Logger |