As has been explained, just as the sages were concerned regarding foods placed near darkness, that one must decree lest he rake the coals, so too they decreed regarding those who make a wood bonfire near darkness, that they may not benefit from it unless they lit it while it was still day in a manner that it no longer requires assistance for the lighting, so that it burns on its own. Therefore, one may not make a bonfire of wood near darkness until the fire takes hold in them in a manner that the flame rises on its own without the assistance of other wood. And if it is a single log—the fire must take hold in the majority of its thickness on the inside, and in the majority of its circumference on the outside. And if it was not lit to this extent—it is forbidden to use it on Shabbat to sit near it or to use its light, as a decree lest he rake in order to burn it well, and he will rake and move the wood so that the flame rises. And even if it was afterwards completely lit—it is forbidden, just as with the foods that we forbade even after their cooking was finished, and such is the law here. But when it was lit to the required measure before night—he may use it as much as he desires, whether to warm himself before it on Shabbat or to use its light, whether it is on the ground or whether it is on a lampstand, and even from materials that one may not make into wicks for Shabbat as will be explained in siman 264, for there we decree lest he tilt, since it is merely a lamp. But with a bonfire which has much light—"lest he tilt" is not applicable, and see in siman 275.
כמו שנתבאר שחששו חז"ל במאכלים שמעמידים סמוך לחשיכה, שיש לגזור שמא יחתה בגחלים, כמו כן גזרו בעושים מדורת עצים סמוך לחשיכה, שלא יהנו מזה בלתי אם הדליקו מבעוד יום באופן שאין צריך עוד לסייע לההדלקה דתבער מאליה. ולפיכך אין עושין מדורה מעצים סמוך לחשיכה, עד שיצית בהן האור בעניין שתהא השלהבת עולה מאליה בלי סיוע עצים אחרים. ואם הוא עץ יחידי - צריך שיאחוז האור ברוב עוביו מבפנים, וברוב הקיפו מבחוץ. ואם לא הודלק בה כל כך - אסור להשתמש בה בשבת לישב אצלה או להשתמש לאורה, גזירה שמא יחתה כדי להבעירה בטוב, ויחתה ויניד העצים כדי שתעלה השלהבת. ואפילו הודלקה אחר כך לגמרי - אסור, כמו במאכלים שאסרנו אף אחר שנגמר בישולה, והוא הדין כאן. אבל כשהודלקה כשיעורה קודם הלילה - יכול להשתמש בה כל מה שירצה, הן להתחמם כנגדה בשבת והן להשתמש לאורה, בין אם הוא על גבי קרקע ובין שהוא על גבי מנורה, ואפילו מדברים שאין עושין מהם פתילות לשבת כמו שיתבאר בסימן רס"ד, דהתם גזרינן שמא יטה, כיון שהיא נר בעלמא. אבל במדורה שאורה הרבה - לא שייך שמא יטה, ועיין בסימן ער"ה.