예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: public void log(@Nonnull CappedLogger logger, @Nonnull String msg)
            public void log(CappedLogger logger, string msg)
            {
                logger.Debug(msg);
            }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: public void log(@Nonnull CappedLogger logger, @Nonnull String msg, @Nonnull Throwable cause)
            public void log(CappedLogger logger, string msg, Exception cause)
            {
                logger.Info(msg, cause);
            }
예제 #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUp()
        public virtual void SetUp()
        {
            _logProvider = new AssertableLogProvider();
            _logger      = new CappedLogger(_logProvider.getLog(typeof(CappedLogger)));
        }