001package org.slf4j.basicTests;
002
003import static org.junit.Assert.assertFalse;
004
005import org.junit.Test;
006import org.slf4j.Logger;
007import org.slf4j.LoggerFactory;
008import org.slf4j.event.Level;
009
010public class FluentAPIUsage {
011
012    @Test
013    public void smoke() { 
014        String name = "smoke";
015        Logger logger = LoggerFactory.getLogger(name);
016        logger.atTrace().addKeyValue("a", "n").setCause(new Throwable()).log("hello");
017    }
018    
019
020    @Test
021    public void smokxce() {
022        String name = "smoke";
023        Logger logger = LoggerFactory.getLogger(name);
024        assertFalse(logger.isEnabledForLevel(Level.DEBUG));
025    }
026
027}