springboot启动不打印日志信息_springboot日志无法正常输出,有日志文件

日志输出不完整

window下和linux下都不完整

相关代码

日志输出:

2019-01-29 01:16:42.214 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 01:16:42.214 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 01:16:42.220 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 01:16:42.220 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 15:27:39.122 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 15:27:39.122 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 15:27:39.128 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 15:27:39.128 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 15:55:41.006 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 15:55:41.007 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 15:55:41.012 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 15:55:41.012 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 15:59:54.552 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 15:59:54.552 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 16:48:15.052 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 16:48:15.052 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 16:55:32.159 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 16:55:32.159 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 16:57:28.997 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 16:57:28.998 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 17:08:05.546 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 17:08:05.547 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 17:08:55.152 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 17:08:55.153 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 17:09:52.737 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 17:09:52.738 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 17:46:14.749 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 17:46:14.749 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2019-01-29 17:59:38.357 [restartedMain] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.

2019-01-29 17:59:38.357 [restartedMain] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

build.gradle

buildscript {

ext {

springBootVersion = '2.0.5.RELEASE'

}

repositories {

mavenCentral()

maven { url "https://maven.aliyun.com/repository/public" }

maven { url "https://repo.spring.io/milestone" }

}

dependencies {

classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")

}

}

apply plugin: 'java'

apply plugin: 'eclipse'

apply plugin: 'org.springframework.boot'

apply plugin: 'io.spring.dependency-management'

group = 'com.jmking.health'

version = '0.0.1'

sourceCompatibility = 1.8

repositories {

mavenCentral()

maven { url "https://maven.aliyun.com/repository/public" }

maven { url "https://repo.spring.io/milestone" }

}

ext {

springCloudVersion = 'Finchley.SR1'

}

dependencies {

compile project(':base_module')

compile fileTree(dir:'libs',include:['*.jar'])

compile('com.alibaba:fastjson:1.2.47')

compile('org.apache.httpcomponents:httpclient:4.5.3')

compile('org.dom4j:dom4j:2.1.1')

compile('commons-codec:commons-codec:1.11')

compile('org.springframework.cloud:spring-cloud-starter-openfeign')

compile('org.springframework.boot:spring-boot-starter-web')

compile('org.springframework.boot:spring-boot-starter-data-redis')

compile('commons-beanutils:commons-beanutils:1.9.3')

runtime('org.springframework.boot:spring-boot-devtools')

}

dependencyManagement {

imports {

mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"

}

}

%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n

${LOG_HOME}/lead.log.%d{yyyy-MM-dd}.%i.log

30

1GB

10MB

%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n

如何才能正常输出

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值