INFO
остальное c FATAL
logback.xml
д б в src/main/resurces
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="30 seconds">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<variable name="BASEDIR" value="${BASEDIR:-.}"/>
<!-- https://www.cloudesire.com/configure-logback-log-level-via-environment-variables/ -->
<property name="FILENAME" value="App"/>
<property name="DIR" value="${BASEDIR}/logs"/>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- can use ${APP_HOME} -->
<file>${DIR}/${FILENAME}.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${DIR}/${FILENAME}.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<maxFileSize>100KB</maxFileSize>
<totalSizeCap>1MB</totalSizeCap>
<maxHistory>1</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>
<root level="WARN">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</root>
<logger name="example" level="DEBUG" additivity="false">
<appender-ref ref="FILE"/>
</logger>
<logger name="org.springframework.data" level="FATAL"/>
<logger name="org.hibernate" level="FATAL"/>
<logger name="org.hibernate.hql" level="DEBUG">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</logger>
<logger name="org.springframework.jdbc.core" level="DEBUG">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</logger>
</configuration>
14068 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.QueryTranslatorImpl - parse() - HQL: select generatedAlias0 from example.data.Student as generatedAlias0
14068 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.QueryTranslatorImpl - parse() - HQL: select generatedAlias0 from example.data.Student as generatedAlias0
14084 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.QueryTranslatorImpl - --- HQL AST ---
\-[QUERY] Node: 'query'
\-[SELECT_FROM] Node: 'SELECT_FROM'
+-[FROM] Node: 'from'
| \-[RANGE] Node: 'RANGE'
| +-[DOT] Node: '.'
| | +-[DOT] Node: '.'
| | | +-[IDENT] Node: 'example'
| | | \-[IDENT] Node: 'data'
| | \-[IDENT] Node: 'Student'
| \-[ALIAS] Node: 'generatedAlias0'
\-[SELECT] Node: 'select'
\-[IDENT] Node: 'generatedAlias0'
14084 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.QueryTranslatorImpl - --- HQL AST ---
\-[QUERY] Node: 'query'
\-[SELECT_FROM] Node: 'SELECT_FROM'
+-[FROM] Node: 'from'
| \-[RANGE] Node: 'RANGE'
| +-[DOT] Node: '.'
| | +-[DOT] Node: '.'
| | | +-[IDENT] Node: 'example'
| | | \-[IDENT] Node: 'data'
| | \-[IDENT] Node: 'Student'
| \-[ALIAS] Node: 'generatedAlias0'
\-[SELECT] Node: 'select'
\-[IDENT] Node: 'generatedAlias0'
14096 [http-nio-8080-exec-1] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors
14096 [http-nio-8080-exec-1] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors
14130 [http-nio-8080-exec-1] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select << begin [level=1, statement=select]
14130 [http-nio-8080-exec-1] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select << begin [level=1, statement=select]
14151 [http-nio-8080-exec-1] DEBUG o.h.h.internal.ast.tree.FromElement - FromClause{level=1} : example.data.Student (generatedAlias0) -> student0_
14151 [http-nio-8080-exec-1] DEBUG o.h.h.internal.ast.tree.FromElement - FromClause{level=1} : example.data.Student (generatedAlias0) -> student0_
14154 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.tree.FromReferenceNode - Resolved : generatedAlias0 -> student0_.id
14154 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.tree.FromReferenceNode - Resolved : generatedAlias0 -> student0_.id
14158 [http-nio-8080-exec-1] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select : finishing up [level=1, statement=select]
14158 [http-nio-8080-exec-1] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select : finishing up [level=1, statement=select]
14160 [http-nio-8080-exec-1] DEBUG o.h.hql.internal.ast.HqlSqlWalker - processQuery() : ( SELECT ( {select clause} student0_.id ) ( FromClause{level=1} student student0_ ) )
14160 [http-nio-8080-exec-1] DEBUG o.h.hql.internal.ast.HqlSqlWalker - processQuery() : ( SELECT ( {select clause} student0_.id ) ( FromClause{level=1} student student0_ ) )
14170 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.util.JoinProcessor - Using FROM fragment [student student0_]
14170 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.util.JoinProcessor - Using FROM fragment [student student0_]
14172 [http-nio-8080-exec-1] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select >> end [level=1, statement=select]
14172 [http-nio-8080-exec-1] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select >> end [level=1, statement=select]
14173 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.QueryTranslatorImpl - --- SQL AST ---
\-[SELECT] QueryNode: 'SELECT' querySpaces (student)
+-[SELECT_CLAUSE] SelectClause: '{select clause}'
| +-[ALIAS_REF] IdentNode: 'student0_.id as id1_1_' {alias=generatedAlias0, className=example.data.Student, tableAlias=student0_}
| \-[SQL_TOKEN] SqlFragment: 'student0_.address_id as address_5_1_, student0_.gender as gender2_1_, student0_.password as password3_1_, student0_.name as name4_1_'
\-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[generatedAlias0], fromElementByTableAlias=[student0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
\-[FROM_FRAGMENT] FromElement: 'student student0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=generatedAlias0,role=null,tableName=student,tableAlias=student0_,origin=null,columns={,className=example.data.Student}}
14173 [http-nio-8080-exec-1] DEBUG o.h.h.i.ast.QueryTranslatorImpl - --- SQL AST ---
\-[SELECT] QueryNode: 'SELECT' querySpaces (student)
+-[SELECT_CLAUSE] SelectClause: '{select clause}'
| +-[ALIAS_REF] IdentNode: 'student0_.id as id1_1_' {alias=generatedAlias0, className=example.data.Student, tableAlias=student0_}
| \-[SQL_TOKEN] SqlFragment: 'student0_.address_id as address_5_1_, student0_.gender as gender2_1_, student0_.password as password3_1_, student0_.name as name4_1_'
\-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[generatedAlias0], fromElementByTableAlias=[student0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
\-[FROM_FRAGMENT] FromElement: 'student student0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=generatedAlias0,role=null,tableName=student,tableAlias=student0_,origin=null,columns={,className=example.data.Student}}
выр сожаления