Home > Blockchain >  What is springProfile in logback?
What is springProfile in logback?

Time:09-12

I wanted to put my log in to aws CloudWatch. So I googled it and copied one of them.

But I understand what other thing's do but I can't under stand what springProfile does. What is springProfile and when does it get trigger?

I'll show my code below.

<configuration packagingData="true">
    <timestamp key="timestamp" datePattern="yyyy-MM-dd-HH-mm-ssSSS"/>
    
    <springProperty name="AWS_ACCESS_KEY" source="cloud.aws.credentials.accessKey"/>
    <springProperty name="AWS_SECRET_KEY" source="cloud.aws.credentials.secretKey"/>

    <appender name="aws_cloud_watch_log" >
        <layout>
            <pattern>[%thread] [           
  • Related