コード例 #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)));
        }